# 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
###### Who is Participating?
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.

Commented:
Use this formula in B2..

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

Or

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

Saurabh...
0
IT CONTRACTORAuthor Commented:
Hi Saurabh

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
0
Commented:
You can use this...

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

Saurabh...
0
IT 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
0
Commented:
Yeah realized what you are looking for..Use this formula...

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

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

Saurabh...
0

Experts Exchange Solution brought to you by

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

IT CONTRACTORAuthor Commented:
Hi Saurabh

Thanks for your help, worked perfectly.

Great job.

S
0
IT CONTRACTORAuthor Commented:
Great work!!!
0
Commented:
Stev,

Always Happy to Help.. :-)

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

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.