Solved

amend if formula

Posted on 2014-04-08
5
158 Views
Last Modified: 2014-04-08
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
Comment
Question by:route217
  • 2
  • 2
5 Comments
 
LVL 19

Assisted Solution

by:regmigrant
regmigrant earned 100 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

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

Author Comment

by:route217
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

by:
itjockey earned 400 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

by:route217
ID: 39985582
Thank for the feedback
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now