Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup? to match column in two sheets | Excel Discussion (Misc queries) | |||
Return SEARCHED Column Number of Numeric Label and Value | Excel Worksheet Functions | |||
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc | Excel Worksheet Functions | |||
IF/AND/OR/DATEIF Issue...sorry...long post... | Excel Worksheet Functions | |||
same cell from multiple sheets into one column | Excel Discussion (Misc queries) |