Lookup in excel

I have an excel file which contains two worksheets. The first worksheet has a column called ID and a field called Status. If there is an ID on this worksheet (Sheet1) and the Status = "Done" then I want the ID field on Sheet 2 which for the same ID to be updated to a 1 in order to count the total number done. Sheet 2 contains all of the ID's which could potentially be upwards of 20k but sheet 1 only has the done id's which will be added to on a daily basis.

If I could get this to update automatically that would be great although I don't know the best way to go. Thank you.
MRG_ALAsked:
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.

KnutsonBMCommented:
vlookup sounds like the way to go as long as the ID is exactly the same

=vlookup(A1,'Sheet1'!A:A,1,false)
0
ragnarok89Commented:
ID field on sheet 2 should have

=if(vlookup(A1,Sheet1!A:A,2,0)="done",1,"")

this assumes sheet 2 has COL A = ID, sheet 1 Col A=ID, sheet1 col B=status
0
asiduCommented:
A sample file attached. You can modify it as per your need.
Work1.xls
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
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Eric ZwiekhorstSAP Business ConsultantCommented:
it would work with a sumproduct as well
=SUMPRODUCT((A1:A50000 = G1)*(B1:B50000="done"))

where A1:A50000 is the column with the ID's, G1 holds the ID  you want to check for and B1:B50000 is the column whre done is to be in..
0
Eric ZwiekhorstSAP Business ConsultantCommented:
By the way, the sumproduct does the count of how many time you find done for a certain ID...

Kind regards

Eric
0
Eric ZwiekhorstSAP Business ConsultantCommented:
I put the formula to work in a excel file  here attached,

Kind regards

eric
Sumproduct-example.xls
0
MRG_ALAuthor Commented:
Thank you!!!
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.