Notices
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Merging Excel Info

Old 4th July 2018 | 08:37
  #1 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Oct 2000
Posts: 317
Likes: 26
Merging Excel Info

Morning Everyone

May I ask for some help regarding MS Excel.

I have 2 seperate account sheets, and would like to find a way of automatically copying information entered in say sheet A into sheet B, without my having to do the work twice.

Thanks, as always

G
gehenna is offline  
Reply
Old 4th July 2018 | 10:10
  #2 (permalink)  
15 Anniversary
 
Joined: Jan 2008
Posts: 300
Likes: 0
From: London, England
Example:
  1. Create two empty workbooks, BookA.xlsx and BookB.xlsx (Save as... somewhere)
  2. In BookA enter a value into A1, e.g. "Hello"
  3. In BookB enter the following into any cell you like : =[BookA.xlsx]Sheet1!$A$1
  4. Notice that "Hello" appears in your chosen cell
In step 3, if BookB isn't in the same folder as BookA, Excel may ask you locate the workbook using a file chooser dialogue.
If you change the location of a workbook, when opening a workbook that refers to it (e,g, BookA is moved and then opening BookB) if Excel doesn't prompt you to automatically, you may need to update the file links, using Data > Connections > Edit Links. This dialogue will allow you to check the status and update/refresh the links between workbooks.
MacBoero is offline  
Reply
Old 4th July 2018 | 15:54
  #3 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Oct 2000
Posts: 317
Likes: 26
MacBoero

Thank you very much for that information.

I shall put it all together this evening, and appreciate your time.
gehenna is offline  
Reply
Old 4th July 2018 | 16:20
  #4 (permalink)  
 
Joined: Jun 2002
Aviation Qualifications: PPL
Posts: 7,176
Likes: 297
From: Nanaimo (CAC8)
You can make the creation of the formula easier, by typing = in the destination cell (in workbook B) and then clicking in the appropriate cell in workbook A and then pressing Enter/Return.

If you remove the $ characters from the formula, you can then copy the formula into all the other cells in workbook B where you need copies of data in workbook A.

Caveat: Based on years of experience, I don't recommend having formulae which reference other workbooks. There is too much scope for things to go badly wrong. My preference would be to have the data in two sheets in the same workbook.
India Four Two is offline  
Reply
Old 4th July 2018 | 18:10
  #5 (permalink)  
 
Joined: Apr 2010
Posts: 7,056
Likes: 2
From: London
Originally Posted by India Four Two
You can make the creation of the formula easier, by typing = in the destination cell (in workbook B) and then clicking in the appropriate cell in workbook A and then pressing Enter/Return.

If you remove the $ characters from the formula, you can then copy the formula into all the other cells in workbook B where you need copies of data in workbook A.

Caveat: Based on years of experience, I don't recommend having formulae which reference other workbooks. There is too much scope for things to go badly wrong. My preference would be to have the data in two sheets in the same workbook.
I was advised , in complex linked sheets, to always have sheet 1 as a summary . Then change a critical input eg double the cost.. and see if it makes a change you'd expect in the final output... saved the bacon a few times.....
Heathrow Harry is offline  
Reply
Old 5th July 2018 | 08:04
  #6 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Oct 2000
Posts: 317
Likes: 26
Thank you India Four Two for your good advice.

Heathrow Harry, Thank You also for your useful comments.

All advice is gratefully received and digested, and hopefully when HRH has allowed me some free time, I'll sort it out!
gehenna is offline  
Reply
Old 5th July 2018 | 09:41
  #7 (permalink)  
 
Joined: Jan 2015
Posts: 453
Likes: 467
From: Jupiter
Just to add a word of warning, the procedure above (linking cells by a =Sheet1! style reference) doesn't copy the data from the cell in Sheet1 to the cell in Sheet2 but establishes a constantly-updating link between the cells.

That means every time you open Sheet2, it opens Sheet1 and updates itself according to the current values of Sheet1.

That means, if you mangle Sheet1 and somehow replace a bunch of historical data with zeroes, those changes will be copied into Sheet2 the next time you open it.
Lascaille is offline  
Reply
Old 5th July 2018 | 11:36
  #8 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Oct 2000
Posts: 317
Likes: 26
Lascaille

Thanks for the warning! I could well have fallen into that trap, but will now have to be that bit more careful.
gehenna is offline  
Reply
Old 5th July 2018 | 18:55
  #9 (permalink)  
Community Builder
20 Countries Visited
20 Anniversary
 
Joined: Mar 2002
Aviation Qualifications: CPL
Posts: 3,392
Likes: 325
From: near an aeroplane
You could create a macro that copies entries into a second sheet, but using just formulas, this is the best that's possible I'm afraid.
Jhieminga is offline  
Reply
Old 6th July 2018 | 05:06
  #10 (permalink)  
Thread Starter
25 Anniversary
 
Joined: Oct 2000
Posts: 317
Likes: 26
Jhieminga

Thanks also for your input. Looks as if the weekend will be the time to put everyone's good advice to use.

g
gehenna is offline  
Reply

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.