Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Yaron Assa
 
Posts: n/a
Default unifying two sheets by a common index column

Hey all.

suppose i have two excel sheets, and they both got a common column that acts
as an index column (e.g. s/n of parts). the sheets have a different number of
values for each index num. and have different columns.

is there a way to created a unified sheet which will contain both sheets
columns, matched by the index column?

thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
broro183
 
Posts: n/a
Default unifying two sheets by a common index column


Hi Yaron,

Yes, this can be done using a vlookup function eg:

=VLOOKUP('Initial Sheet'!$A1,'Other Sheet'!$A:$G,COLUMN('Initial
Sheet'!G1)-5,FALSE)

Copy this into the first empty column (cell G1 of "Initial Sheet" in my
example) of one of your two sheets & paste across for as many columns as
there are columns in the "Other Sheet" (cols A to G in my example) &
down as many rows as needed.

This part of the formula, "COLUMN('Initial Sheet'!G1)-5", means that
you don't have to change the formula to lookup a new column when you
copy it across the columns of the Initial Sheet.
If the data in your initial sheet goes to a different column, change
the "5" to another number so that the result is of this is 2 in your
first column.

This is based on the assumption that your "index column" is in column A
of both sheets.
Once all the data has been transferred into the Initial Sheet I would
select all the vlookup equations and copy & paste special as values
because a lot of vlookups can slow the spreadsheet down lots & I'm
guessing that once you have all the values in one sheet, the other one
won't be needed?

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=528932

  #3   Report Post  
Posted to microsoft.public.excel.misc
David McRitchie
 
Posts: n/a
Default unifying two sheets by a common index column

Hi Yaron
The safest way is probably to use VLOOKUP Worksheet Formula
http://www.mvps.org/dmcritchie/excel/vlookup.htm
assuming there are no both sheets have all of the index items.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Yaron Assa" wrote in message ...
Hey all.

suppose i have two excel sheets, and they both got a common column that acts
as an index column (e.g. s/n of parts). the sheets have a different number of
values for each index num. and have different columns.

is there a way to created a unified sheet which will contain both sheets
columns, matched by the index column?

thanks!



  #4   Report Post  
Posted to microsoft.public.excel.misc
Yaron Assa
 
Posts: n/a
Default unifying two sheets by a common index column

wonderful, thank you.

"broro183" wrote:


Hi Yaron,

Yes, this can be done using a vlookup function eg:

=VLOOKUP('Initial Sheet'!$A1,'Other Sheet'!$A:$G,COLUMN('Initial
Sheet'!G1)-5,FALSE)

Copy this into the first empty column (cell G1 of "Initial Sheet" in my
example) of one of your two sheets & paste across for as many columns as
there are columns in the "Other Sheet" (cols A to G in my example) &
down as many rows as needed.

This part of the formula, "COLUMN('Initial Sheet'!G1)-5", means that
you don't have to change the formula to lookup a new column when you
copy it across the columns of the Initial Sheet.
If the data in your initial sheet goes to a different column, change
the "5" to another number so that the result is of this is 2 in your
first column.

This is based on the assumption that your "index column" is in column A
of both sheets.
Once all the data has been transferred into the Initial Sheet I would
select all the vlookup equations and copy & paste special as values
because a lot of vlookups can slow the spreadsheet down lots & I'm
guessing that once you have all the values in one sheet, the other one
won't be needed?

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=528932


  #5   Report Post  
Posted to microsoft.public.excel.misc
broro183
 
Posts: n/a
Default unifying two sheets by a common index column


hi Yaron,
Pleased I could help, thanks for the feedback.

Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=528932

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
Vlookup? to match column in two sheets researcy Excel Discussion (Misc queries) 2 February 27th 06 05:58 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc EDSTAFF Excel Worksheet Functions 0 November 14th 05 03:27 PM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
same cell from multiple sheets into one column Kel Excel Discussion (Misc queries) 0 February 18th 05 12:53 AM


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