Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# amend if formula

Posted on 2014-04-08
Medium Priority
173 Views
Hi Experts excel 2007

I need to amend the following. ..
=IF(C2="Completed","Complete",IF(C2<>"",C2,IF(AND(C2="",A2=""),"",IF(C2="",VLOOKUP(A2,H12:L19,2,FALSE)))))

To if c2 is complete then complete...if a2 has text then vlookup, if A2 is blank then c2..if a2 is blank and c2 is blank then blank. .
0
Question by:route217
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2
• 2

LVL 19

Assisted Solution

regmigrant earned 400 total points
ID: 39985564
=IF(C2="Completed","Complete",IF(A2="",C2,VLOOKUP(A2,H12:L19,2,FALSE)))

however if the lookup fails this will return 0 - is that a problem?
0

LVL 8

Expert Comment

ID: 39985566
=IF(C2="Complete","Complete",IF(A2<>"",VLOOKUP(A2,H12:L19,2,FALSE),IF(A2="",C2,IF(AND(A2="",C2=""),""))))
0

Author Comment

ID: 39985571
Hi expert

What about if a2 is blank and c2 is blank. ..then would the formula return blank?
0

LVL 8

Accepted Solution

Naresh Patel earned 1600 total points
ID: 39985573
=IF(C2="Complete","Complete",IF(A2<>"",VLOOKUP(A2,H12:L19,2,FALSE),IF(AND(A2="",C2=""),"",IF(A2="",C2))))
0

Author Comment

ID: 39985582
Thank for the feedback
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month4 days, 23 hours left to enroll