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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Naresh PatelFinancial AdviserCommented:
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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

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 PatelFinancial AdviserCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.