I have a spreadsheet with multiple sheets, each containing lists (columns) of employee numbers and corresponding deduction amounts. How can I 'join'/link the two sheets together in order to compare corresponding deduction amounts?
Thanks, Dan
I have a spreadsheet with multiple sheets, each containing lists (columns) of employee numbers and corresponding deduction amounts. How can I 'join'/link the two sheets together in order to compare corresponding deduction amounts?
Thanks, Dan
Last edited by DJBittner; 06-24-2010 at 05:08 PM.
You can use Vlookup or Sumif to gather the relevant information in one sheet (in adjacent columns). Then easily compary....
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
so, i used the formula
=VLOOKUP('icma match.xlsx'!emp_four, 'icma match.xlsx'!emp, 'icma match.xlsx'!DIFF,FALSE)
where emp_four is my column name of employee#s to search, emp is my column name from a different sheet contain the search table and DIFF is the amount I am trying to retrieve upon a successful lookup .... i am getting #VALUE! for my result .... when i evaluate the expression all parts look good (to me) .... any thoughts?
Upload the worksheet you are working on so we can see the error. Just make sure there is no confidential information in there.
What is icma match.xlsx? Another workbook?
Vlookup syntax is:
=Vlookup(Lookup_Value,Lookup_Range, ColumnNumber, RangeLookup)
where Lookup_Value is the actual thing you want to find in the first column of Lookup_Range (a table), and ColumnNumber is the column number within the range that contains the results you want returned... RangeLookup is optional and usually to find an exact match you would enter FALSE.
See help files for this function.
the evaluation steps look as follows:
VLOOKUP(emp_four, emp, DIFF,FALSE)
VLOOKUP(11373,emp,DIFF,FALSE)
VLOOKUP(11373,Sheet1!$A:$A,DIFF,FALSE)
VLOOKUP(11373,Sheet1!$A:$A,Sheet1!$I:$I,FALSE)
#VALUE!
Maybe then:
=INDEX(DIFF,MATCH(emp_four,emp,0))
or
=SUMIF(emp,emp_four,DIFF) if you are returning a single number from column I
VLOOKUP(11373,Sheet1!$A:$A,Sheet1!$I:$I,FALSE)
Should be
VLOOKUP(11373,Sheet1!$A:$I,9,FALSE)
Look up the value 11373 in the first column (A) of the range A:all rows through I:all rows and return the value in column number 9 of the range (Column I)
'icma match' is the entire workbook that contain the sheets i am using; when i reference a field from a sheet such as Sheet1!emp_four, the formula gets changed from 'Sheet1'! to 'icma match.xlsx'! .... i have been working with colum I in Sheet 4 and referencing Sheet 1 .....
See my above 2 options
=SUMIF(emp,emp_four,DIFF)
and then you can hide 0's by formatting as: 0;-0;;@
or
=IF(ISNUMBER(MATCH(emp_four,emp,0)),INDEX(DIFF,MATCH(emp_four,emp,0)),"")
=INDEX(DIFF,MATCH(emp_four,emp,0)) is the answer .... thanks for the help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks