Solved

Mulitple IF statement with DATEVALUE & VLOOKUP

Posted on 2014-11-04
4
151 Views
Last Modified: 2014-11-07
Could you please help I have the following formula that I need to add additional criteria to

=IFERROR(IF(VLOOKUP([@[Store '#]],ISS!$C:$HX,21,FALSE)="",DATEVALUE("01/01/3000"),VLOOKUP([@[Store '#]],ISS!$C:$HX,21,FALSE)),DATEVALUE("01/01/3000"))

I would like for statement to read If Field 23 is blank then use the date in field 21, if field 21 is blank then return 1/1/3000 else return date in field 23

I tried this function but got False  where I would like 1/1/3000 to populate: =IFERROR(IF(VLOOKUP([@[Store '#]],ISS!$C:$HX,23,FALSE)="",IF(VLOOKUP([@[Store '#]],ISS!$C:$HX,21,FALSE)="",DATEVALUE("01/01/3000")),VLOOKUP([@[Store '#]],ISS!$C:$HX,23,FALSE)),DATEVALUE("01/01/3000"))
0
Comment
Question by:jmac001
4 Comments
 
LVL 7

Expert Comment

by:tomfarrar
ID: 40422812
Can you attach a sample of the spreadsheet?
0
 
LVL 25

Expert Comment

by:ProfessorJimJam
ID: 40423037
=IFERROR(IF(VLOOKUP([@[Store '#]],ISS!$C:$HX,21,FALSE)="",DATEVALUE("01/01/3000"),if(VLOOKUP([@[Store '#]],ISS!$C:$HX,23,FALSE)="",VLOOKUP([@[Store '#]],ISS!$C:$HX,21,FALSE)))"")
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 40423839
Prof JJ - missing comma before double quotes at end of formula.

How about, if not already covered, in logic syntax rather than formula:

IF ( AND (Lookup 21 = "", Lookup 23 = "") Then "01/01/3000" Else IF Lookup 23 = Blank Then Lookup 21 Else Lookup 23 )

All bound within an IFERROR (Formula, "")

Hope that makes sense and can be interpreted to formula.

Thanks
Rob H
0
 

Author Closing Comment

by:jmac001
ID: 40429145
Thanks Rob I was able to follow your solution. Prof JJ, Rob 's was the best solution, after trying the your solution it flipped the results that I had, populated dates changed to False and populated False to a date.
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

Suggested Solutions

Title # Comments Views Activity
Match formula returns N/A 5 25
Hiding column macro 10 28
What is format f12.8 for a CSV file 6 41
excel connection properties parameters grayed out 5 26
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

910 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

20 Experts available now in Live!

Get 1:1 Help Now