MS Excel Formula Query (IF and VLOOKUP)

I have a spreadsheet where I am using conditional formatting with IF and VLOOKUP, however I cannot combine the two.

In Column B I currently have VLOOKUP of =VLOOKUP(Y:Y,Codes!L$2:M$5, 2, FALSE) which marks the row as complete if Column Y is set to YES.

I then created an IF statement =IF(C:C,"IN PROGRESS","") for Column B as I wanted an IN PROGRESS (in orange) to appear if a date was put into Column C in order to show that a new entry has been created.  

EXCEL.pdf

I cannot seem to combine the two.  As what I would like to happen is that a new entry is created and the Status Column 'A' populates 'In Progress', however once the dropdown in 'Posted?' Column Y is changed to YES, N/A or COLLECTED it changed to completed.

Can anyone help me on this please?

Cheers
Stev0WIT CONTRACTORAsked:
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.

Saurabh Singh TeotiaCommented:
Use this formula in B2..

=if(OR(Y2="Yes",Y2="Y",Y2="N/A",Y2="Collected"),"Complete","In Progress")

Open in new window


Or

=if(trim(y2)<>"","Complete","In Progress")

Open in new window


Saurabh...
Stev0WIT CONTRACTORAuthor Commented:
Hi Saurabh

Thanks for your proposed solution.

We are almost there, however, having input the formula into B and with no data in C it automatically marks it as In Progress.  I need Bto be blank until C has a date.

Cheers
Saurabh Singh TeotiaCommented:
You can use this...

=if(and(OR(Y2="Yes",Y2="Y",Y2="N/A",Y2="Collected"),C2<>""),"Complete","In Progress")

Open in new window

Or
=if(and(trim(y2)<>"",C2<>""),"Complete","In Progress")

Open in new window


Saurabh...
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

Stev0WIT CONTRACTORAuthor Commented:
Hi Saurabh

That doesn't work I'm afraid as that starts with B showing In Progress (rather than blank) and with nothing entered into C.

Changing Y to Yes or N/A or Collected turns B to Complete, however the starting point I am after is for the cell in B to be blank before entering anything into C.  The original formula I had was =IF(C:C,"IN PROGRESS","") which worked, however didn't change B to Complete based on the entry in Y.

Thanks for your help so far, I am sure we will get there.

S
Saurabh Singh TeotiaCommented:
Yeah realized what you are looking for..Use this formula...

=IF(AND(TRIM(Y2)<>"",C2<>""),"Complete",IF(C2<>"","In Progress",""))

Open in new window


=IF(AND(OR(Y2="Yes",Y2="Y",Y2="N/A",Y2="Collected"),C2<>""),"Complete",IF(C2<>"","In Progress",""))

Open in new window


Saurabh...

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
Stev0WIT CONTRACTORAuthor Commented:
Hi Saurabh

Thanks for your help, worked perfectly.

Great job.

S
Stev0WIT CONTRACTORAuthor Commented:
Great work!!!
Saurabh Singh TeotiaCommented:
Stev,

Always Happy to Help.. :-)

Saurabh...
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.