#1   Report Post  
Micayla Bergen
 
Posts: n/a
Default IF and VLOOKUP

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.
  #2   Report Post  
Max
 
Posts: n/a
Default

Try something along the lines of:

=IF(M4=1,0,IF(M4="",IF(ISNA(VLOOKUP(...)),"",VLOOK UP(...)),"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 <atyahoo<dotcom
----
"Micayla Bergen" wrote in message
...
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.


  #3   Report Post  
Max
 
Posts: n/a
Default

Typo:

"M4 is neither 1 nor 0"
should read as: "M4 is neither 1 nor blank"

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 10:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"