# I think i need to use vlookup but unsure

first of all, I don't know how to use vlookup.

I have two spreadsheets.  both of them have a column in them for employee id.
one (1) spreadsheet has employee id's that are employed and no longer employed and two (2)  spreadsheet has all active employees.
im trying to identify all the employees that are listed in the (1) spreadsheet that are no longer employed by cross referencing it to spreadsheet 2.

###### Who is Participating?

Commented:
Assuming your sheet1 A Column has id's which are active and Sheet2 A Column has values where employee is no longer active you can simply apply this formula in B2 and drag it will do what you are looking for...

=if(countif(Sheet2!A:A,Sheet1!a2)>0,"No Longer Employed","Employee Active")

This will give you a list of no longer employees for your reference..

Saurabh..
Check.xlsx
0

will you attach sample file.

Thanks
0

Group Finance ManagerCommented:
VLOOKUP will work between workbooks and will not require the source workbook to actually be open. You must reference the other workbook in the formula. Maybe attach a couple of sample workbooks with private information masked
0

Group Finance ManagerCommented:
Are you referring to worksheets or different workbooks?

Another alternative would be a PivotTable
0

Author Commented:
spreadsheet 1 contains employees with one being fired
spreadsheet 2 contains all active employees

I need spreadsheet 1 to tag the fired employee from the information in spreadsheet 2
1.xlsx
2.xlsx
0

As Mr.Saurabh Singh Teotia,

Suggested
=IF(C2="","",IF(COUNTIF([2.xlsx]Sheet1!\$C:\$C,C2)>0,"Active","Fired"))
try this (Open Both WB) past this formula in 1.xls cell D2 and formula drop down.

and you done.

Thanks
0

Commented:
I combined both of your workbooks in 1 to take care of external linking and applied the formula which does what you are looking for...

1 is for workbook-->1 and 2 sheet is  for workbook-->2
1.xlsx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.