Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Data Valadation using If/Then Statement

Status
Not open for further replies.

cariengon

Technical User
Mar 18, 2002
283
US
I'm trying to use the data valadation in Excel, where I want the lists to be different based on the value returned in cell B40. I have named the lists "PRE_TREATMENT_OPT" and "POST_TREATMENT_OPT".

Below is the statement that I wrote, that is erroring out on me:

=if(B40="Pre-petition",[PRE_TREATMENT_OPT],if(B40="Post-Petition",[POST_TREATMENT_OPT],null))

I'm thinking it may be the way that I'm refering to the named range. Is my format incorrect? I'm sure I can use cell range references, but to keep my form clean, I'd rather reference a name.

Thanks!
Carie
 
NEVER MIND! Figured it out. Took out the []'s and changed the null to "".

Thanks anyway!
 
It was also covered pretty well in this thread ...

thread68-374286



Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top