Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Update values in WkBk1 from WkBk2

Trying to update cells in Workbook1 from Workbook2 based on a match between
values in Col A in both Workbooks. The value of Col B IN Workbook2 is to be
added to the value in Col O in Workbook1 for each match. Seems simple. Easy
in Access as a query but Excel syntax is very differnet... Would really
appreciate help . Just need to know how to get started using a Macro since
this routine will be used on a weekly basis to update Workbook1... Thanks in
advance . (Both Workbooks will be open to run the code)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Update values in WkBk1 from WkBk2

On May 26, 12:49 am, pattlee
wrote:
Trying to update cells in Workbook1 from Workbook2 based on a match between
values in Col A in both Workbooks. The value of Col B IN Workbook2 is to be
added to the value in Col O in Workbook1 for each match. Seems simple. Easy
in Access as a query but Excel syntax is very differnet... Would really
appreciate help . Just need to know how to get started using a Macro since
this routine will be used on a weekly basis to update Workbook1... Thanks in
advance . (Both Workbooks will be open to run the code)


If you have a primary key in both workbooks, you can link them using
VLOOKUP.

However, sounds like the key is not unique in one of the workbooks, in
which case I would suggest SUMIF.

Both mean creating links between the workbooks. However, this could be
avoided by copying the entire worksheet contents (CTRL+A, CTRL+C) from
one workbook into the other.

To Automate this, start with the macro recorder, Tools... Macros....
Record New Macro..... then go into the Visual Basic Editor (same menu)
to see what you recorded.

HTH

Andrew
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Values popup screen Eden397 Excel Discussion (Misc queries) 0 December 13th 07 02:24 PM
Website to update values Noob Jedi Excel Discussion (Misc queries) 0 August 29th 07 03:28 PM
Website to update values Noob Jedi Excel Discussion (Misc queries) 0 August 29th 07 03:24 PM
Values in spreadsheets do not update Sandy at the Chrome Excel Worksheet Functions 5 July 11th 06 02:37 PM
Update of cell values after insert row? dazman Excel Worksheet Functions 2 August 23rd 05 07:07 AM


All times are GMT +1. The time now is 06:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"