Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Referencing data validation list in IF Statement

Is there a way to referece a data validation list name in an IF statement?
Say I have a data validation list in cell A1. In Cell B1, I want to pull in
a certain IF statement from another cell depending on what data validation
list is in cell A1.

So - I have List "New York" in A1 which includes Buffalo, Rochester, Albany
and Brooklyn, and the if statement associated with that list is
=if(a1="Buffalo","WNY",if(a1="Rochester","CNY,if(a 1="Albany","NENY","NYC")))

If I change the list to "California", which includes Los Angeles, Napa
Valley and San Francisco, my thought was to put the associated if statements
in some reference cell (say a100, a101, etc.), then use an IF statement in B1
to say =if(datavalidation list = "New York",a100,if(datavalidation list
="California,a101....etc. But I don't know how to, or if I can, reference a
named list like this.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Referencing data validation list in IF Statement

I'm thinking you need something like this

http://www.contextures.com/xlDataVal13.html
--
HTH,
Barb Reinhardt




"PMarble" wrote:

Is there a way to referece a data validation list name in an IF statement?
Say I have a data validation list in cell A1. In Cell B1, I want to pull in
a certain IF statement from another cell depending on what data validation
list is in cell A1.

So - I have List "New York" in A1 which includes Buffalo, Rochester, Albany
and Brooklyn, and the if statement associated with that list is
=if(a1="Buffalo","WNY",if(a1="Rochester","CNY,if(a 1="Albany","NENY","NYC")))

If I change the list to "California", which includes Los Angeles, Napa
Valley and San Francisco, my thought was to put the associated if statements
in some reference cell (say a100, a101, etc.), then use an IF statement in B1
to say =if(datavalidation list = "New York",a100,if(datavalidation list
="California,a101....etc. But I don't know how to, or if I can, reference a
named list like this.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Referencing data validation list in IF Statement

Thank you, Barb - that did it!

"Barb Reinhardt" wrote:

I'm thinking you need something like this

http://www.contextures.com/xlDataVal13.html
--
HTH,
Barb Reinhardt




"PMarble" wrote:

Is there a way to referece a data validation list name in an IF statement?
Say I have a data validation list in cell A1. In Cell B1, I want to pull in
a certain IF statement from another cell depending on what data validation
list is in cell A1.

So - I have List "New York" in A1 which includes Buffalo, Rochester, Albany
and Brooklyn, and the if statement associated with that list is
=if(a1="Buffalo","WNY",if(a1="Rochester","CNY,if(a 1="Albany","NENY","NYC")))

If I change the list to "California", which includes Los Angeles, Napa
Valley and San Francisco, my thought was to put the associated if statements
in some reference cell (say a100, a101, etc.), then use an IF statement in B1
to say =if(datavalidation list = "New York",a100,if(datavalidation list
="California,a101....etc. But I don't know how to, or if I can, reference a
named list like this.

Thanks.

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
Data Validation Restriction Referencing other Workbook Jim Excel Worksheet Functions 1 September 9th 08 11:45 PM
Referencing a range on a different tab than where data validation Constance Excel Discussion (Misc queries) 1 June 30th 08 03:44 PM
Create formula referencing drop down list (data validation) mldancing Excel Discussion (Misc queries) 4 August 22nd 07 08:16 PM
If statement with validation list Pete Excel Worksheet Functions 7 January 2nd 07 07:46 PM
Referencing a data validation list Scott@CW Excel Discussion (Misc queries) 5 December 19th 06 10:55 PM


All times are GMT +1. The time now is 12:40 PM.

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

About Us

"It's about Microsoft Excel"