ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   In Excel, how do I add "not in list" to an if statement? (https://www.excelbanter.com/excel-worksheet-functions/206527-excel-how-do-i-add-not-list-if-statement.html)

Elana

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

Mike H

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


Elana

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


Mike H

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



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com