Wikiposts
Search
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

Thread Tools
 
Search this Thread
 
Old 4th Jul 2018, 08:37
  #1 (permalink)  
Thread Starter
 
Join Date: Oct 2000
Posts: 257
Received 0 Likes on 0 Posts
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  
Old 4th Jul 2018, 10:10
  #2 (permalink)  
 
Join Date: Jan 2008
Location: London, England
Age: 56
Posts: 300
Likes: 0
Received 0 Likes on 0 Posts
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  
Old 4th Jul 2018, 15:54
  #3 (permalink)  
Thread Starter
 
Join Date: Oct 2000
Posts: 257
Received 0 Likes on 0 Posts
MacBoero

Thank you very much for that information.

I shall put it all together this evening, and appreciate your time.
gehenna is offline  
Old 4th Jul 2018, 16:20
  #4 (permalink)  
 
Join Date: Jun 2002
Location: Manchester MAN
Posts: 6,643
Received 74 Likes on 46 Posts
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  
Old 4th Jul 2018, 18:10
  #5 (permalink)  
 
Join Date: Apr 2010
Location: London
Posts: 7,072
Likes: 0
Received 0 Likes on 0 Posts
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  
Old 5th Jul 2018, 08:04
  #6 (permalink)  
Thread Starter
 
Join Date: Oct 2000
Posts: 257
Received 0 Likes on 0 Posts
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  
Old 5th Jul 2018, 09:41
  #7 (permalink)  
 
Join Date: Jan 2015
Location: Mars
Posts: 72
Likes: 0
Received 0 Likes on 0 Posts
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  
Old 5th Jul 2018, 11:36
  #8 (permalink)  
Thread Starter
 
Join Date: Oct 2000
Posts: 257
Received 0 Likes on 0 Posts
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  
Old 5th Jul 2018, 18:55
  #9 (permalink)  
 
Join Date: Mar 2002
Location: near an airplane
Posts: 2,794
Received 52 Likes on 42 Posts
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  
Old 6th Jul 2018, 05:06
  #10 (permalink)  
Thread Starter
 
Join Date: Oct 2000
Posts: 257
Received 0 Likes on 0 Posts
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  

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



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

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