compare and extract or copy value

Excelpast

Board Regular
Joined
May 14, 2003
Messages
54
I have two excel files. I want to get data off of one file and put it on the other file without having to manualy copy data manually. Keep doing this until a condition is meet.

What function would I use?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I don't think there is an existing function for this. You would almost definately have to write a macro to do this. If you post either the sheet or a more detailed description of your problem, we could help better.

Peace,
Josh
 
Upvote 0
How can i post the excel file without it mess up. This text box here will not hold the format. Thanks for your time and help.
 
Upvote 0
I won't be able to use the color HTML maker to post the sheet (I can email it). I wish I could. I would like to compare a name(or key field) that is in book2 with a name or (key field) in book 3>> Get data for a column and place it in book 3. DOUNTIL all names (or key field is empty).



Here is a macro that I started. There is no repect to a key field and it doesn't DO_UNTIL.



Sub Macro1()
'
' Macro1 Macro

'

'
Windows("Book2").Activate
Range("C5").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Book3").Activate
Range("B5").Select
ActiveSheet.Paste
Range("B6").Select
Windows("Book2").Activate
Range("C6").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Book3").Activate
ActiveSheet.Paste
Windows("Book2").Activate
Range("C7").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Book3").Activate
Range("B7").Select
ActiveSheet.Paste
Range("B13").Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top