Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Return Rows from another workbook

May be you can try out with small amount of data in a different sheet; and
once you are comfortable ...can try out in this sheet

Refer this link...
http://www.timeatlas.com/mos/5_Minut...OKUP_in_Excel/

If this post helps click Yes
---------------
Jacob Skaria


"Juan" wrote:

No it didn't work. Maybe my data is not aligned enough to return all match
and return all rows.

Thanks anyway.

"Jacob Skaria" wrote:

Dear Juan

Try using VLOOKUP in Sheet1.

Sheet1 AK2 = Vlookup($A2,Sheet2!$A:$A,2,FALSE)
Sheet1 AL2 = Vlookup($A2,Sheet2!$A:$A,3,FALSE)
Copy this to AO2.

Sheet1 AK3 = Vlookup($A3,Sheet2!$A:$A,2,FALSE)
Sheet1 AL3 = Vlookup($A3,Sheet2!$A:$A,3,FALSE)


If this post helps click Yes
---------------
Jacob Skaria


"Juan" wrote:

I know what's wrong. Both sets of data are not aligned and one side may be
missing records. There is about 100 record discrepancy and that's why IDs do
not align in the exact row.

Can something be done to do a search on the ID column no matter the position
and return that row anywhere. I already sorted the IDs smallest to largest.

"Jacob Skaria" wrote:

Paste the below formula to Sheet1 AK2. Drag that to the right upto needed say
AO2. Then select the range AK2:AO2 and drag that to down.

If this post helps click Yes
---------------
Jacob Skaria


"Juan" wrote:

Thanks but that didn't work. It returned only the ID from on the 4th cell
down with the ID. Not the entire row from the second workbook.

Would it be better if i moved the data from workbook 2 toward the bottom of
workbook one to begin on A1745 rather than on a separate workbook? If so,
what formula would work to bring that data up to the right side.

"Jacob Skaria" wrote:

Paste this in Sheet1 AK and drag that to the right columns . and then drag it
down as needed.

=IF(Sheet1!$A2=Sheet2!$A2,Sheet2!A2,"")

If this post helps click Yes
---------------
Jacob Skaria


"Juan" wrote:

I have a workbook1 that i need to match on ID in A2 with ID on A2 of
workbook2.

If the ID matches, i want to return that single row with all columns from
the second workbook to the first workbook. The data should be returned on
cell AK.
I want to compare side by side data for auditing. If you need more
information let me know.

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
How to return a value from another workbook Narnimar Excel Worksheet Functions 1 June 30th 09 05:59 PM
How to return a value from another workbook Narnimar Excel Worksheet Functions 0 June 30th 09 05:48 PM
RETURN NAME OF WORKBOOK ytayta555 Excel Programming 3 June 3rd 08 09:03 PM
Lookup and return value 12 rows below HA14 Excel Worksheet Functions 5 September 6th 07 02:00 PM
Return no of rows per page Neil Waterworth Excel Programming 4 January 23rd 05 04:53 PM


All times are GMT +1. The time now is 03:32 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"