LOOKUP+IF+???

C

Connie Martin

I've consulted "Help" but unfortunately it's not clear enough for amateurs.
Maybe someone can direct me to a MS webpage that covers this type of thing
real well because I really struggle with these type of formulas. I don't
post my question here until I've tried for some time to do it myself. Okay,
here's the formula I need:

=IF(C2="Yes","",(VLOOKUP(B2,NIRAV,2))) This formula is not complete for
what I want and is partially incorrect. Note: "NIRAV" is a named range,
which is in Col. A of another worksheet (same workbook). It is a column of
numbers. I want the formula in my first worksheet to look at the number in
B2 and find the corresponding number in the NIRAV range and then give me the
date that is in the same row in Col. B. However, if there's no date, I want
the formula to return "Not Scheduled".

I can't thank you enough! Connie
 
J

John C

I am assuming the named range NIRAV covers both column A and B of the other
worksheet.
=IF(C2="Yes","",IF(ISNA(VLOOKUP(B2,NIRAV,2,FALSE)),"Not
Scheduled",VLOOKUP(B2,NIRAV,2,FALSE)))
 
C

Connie Martin

John, this is very close to working perfectly! Just one little problem.
Because the column is formatted for a date, I get "JAN-00-00" instead of "Not
Scheduled". How can we fix that? Connie
 
T

T. Valko

give me the date that is in the same row in Col. B.
However, if there's no date, I want the formula to
return "Not Scheduled".

If there's no date is the cell empty?

Possibly this:

=IF(C2="Yes","",IF(VLOOKUP(B2,NIRAV,2)="","Not
Scheduled",VLOOKUP(B2,NIRAV,2)))
 
P

Pete_UK

I think you need to modify John's formula to this:

=IF(C2="Yes","",IF(ISNA(VLOOKUP(B2,NIRAV,
2,FALSE)),"",IF(VLOOKUP(B2,NIRAV,2,FALSE)=0,"Not
Scheduled",VLOOKUP(B2,NIRAV,2,FALSE))))

His was returning a zero for empty cells, which then gave you
Jan-00-00.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula gone awry 10
HLOOKUP, VLOOKUP, LOOKUP??? 10
LOOKUP 5
Excel VBA 1
INDEX? MATCH? 10
Copying formulas across columns 2
if function (if more that 7 nesting) 2
Help with VLOOKUP & MATCH formula 5

Top