Solved

amend if formula

Posted on 2014-04-08
5
159 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
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;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

863 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

23 Experts available now in Live!

Get 1:1 Help Now