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.


how should I go about this?
jamesmetcalf74Asked:
Who is Participating?
 
Saurabh Singh TeotiaCommented:
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")

Open in new window


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

Workbook for your reference...

Saurabh..
Check.xlsx
0
 
Naresh PatelTraderCommented:
will you attach sample file.

Thanks
0
 
Roy CoxGroup 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
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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

Another alternative would be a PivotTable
0
 
jamesmetcalf74Author 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
 
Naresh PatelTraderCommented:
As Mr.Saurabh Singh Teotia,  

Suggested
=IF(C2="","",IF(COUNTIF([2.xlsx]Sheet1!$C:$C,C2)>0,"Active","Fired"))

Open in new window

try this (Open Both WB) past this formula in 1.xls cell D2 and formula drop down.

and you done.


Thanks
0
 
Saurabh Singh TeotiaCommented:
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.

All Courses

From novice to tech pro — start learning today.