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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Yesuslave

Active Member
Joined
Sep 19, 2003
Messages
297
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
 

Excelpast

Board Regular
Joined
May 14, 2003
Messages
54
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.
 

Excelpast

Board Regular
Joined
May 14, 2003
Messages
54
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,101
Messages
5,768,101
Members
425,453
Latest member
bince

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
Top