IF and VLOOKUP

G

Guest

i have a vlookup function in N4, if the value in M4 = 1 i want N4 to return a
o, but if M4 is blank i want to use the vlookup formula
any takers???
Many thanks to everyone who has helped w this nightmarish spreadsheet of mine.
 
M

Max

Try something along the lines of:

=IF(M4=1,0,IF(M4="",IF(ISNA(VLOOKUP(...)),"",VLOOKUP(...)),"M4 is neither 1
nor 0"))

You can replace the phrase: "M4 is neither 1 nor 0"
with something else (you didn't specify this)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <at>yahoo<dot>com
----
Micayla Bergen said:
i have a vlookup function in N4, if the value in M4 = 1 i want N4 to return a
o, but if M4 is blank i want to use the vlookup formula
any takers???
Many thanks to everyone who has helped w this nightmarish spreadsheet of
mine.
 

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 problem 1
average 8
nested if 3
#VALUE! ERROR 3
insert formula in cell 6
Leave final cell blank 2
difficult formula 10
Need help with iteration 7

Top