Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default In Excel, how do I add "not in list" to an if statement?

I'm trying to figure out how to write the following if(XXX is not in
list,then WW,otherwise YY). How do I write the "not in list" section of this
if statement?
--
Elana
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default In Excel, how do I add "not in list" to an if statement?

Maybe

=IF(ISNA(VLOOKUP("xxx",A1:A6,1,FALSE)),"WW","YY")

Mike

"Elana" wrote:

I'm trying to figure out how to write the following if(XXX is not in
list,then WW,otherwise YY). How do I write the "not in list" section of this
if statement?
--
Elana

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default In Excel, how do I add "not in list" to an if statement?

You're awesome. It worked! Thank you!
--
Elana


"Mike H" wrote:

Maybe

=IF(ISNA(VLOOKUP("xxx",A1:A6,1,FALSE)),"WW","YY")

Mike

"Elana" wrote:

I'm trying to figure out how to write the following if(XXX is not in
list,then WW,otherwise YY). How do I write the "not in list" section of this
if statement?
--
Elana

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default In Excel, how do I add "not in list" to an if statement?

I think awesome may be a bit OTT but glad I could help and thanks for the
feedback.



"Elana" wrote:

You're awesome. It worked! Thank you!
--
Elana


"Mike H" wrote:

Maybe

=IF(ISNA(VLOOKUP("xxx",A1:A6,1,FALSE)),"WW","YY")

Mike

"Elana" wrote:

I'm trying to figure out how to write the following if(XXX is not in
list,then WW,otherwise YY). How do I write the "not in list" section of this
if statement?
--
Elana

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
Combining "IF"statement with "Vlookup" Malcolm McMaster[_2_] Excel Discussion (Misc queries) 9 October 21st 14 03:13 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
embedding "ISERROR" function into an "IF" statement [email protected] Excel Worksheet Functions 8 January 4th 07 12:01 AM
cannot use "Create List" and "Share Workbook" same time Devendra Excel Discussion (Misc queries) 0 October 26th 06 06:05 AM
"IF" statement & "strikethrough" formatting jijy Excel Worksheet Functions 3 March 22nd 06 06:56 PM


All times are GMT +1. The time now is 12:53 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"