Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Conditional/Nested Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kuliano - 18 Mar 2008 20:15 GMT
I have a drop down list in B3 with three (text) values - call then a, b, and,
c.  Based on what a user selects in the drop down, I need to perform other
calculations:

If B3 = "a", I want to populate E3 with  0, or
If B3 = "b",  I want to populate E3 with 1, or
If B3 = "c",  I want to populate E3 with 2

I'm at a loss...
Adilson Soledade - 18 Mar 2008 20:21 GMT
In E3 you must write the formula: =IF(B3="a",0,IF(B3="b",1,2))
Signature

Adilson Soledade

> I have a drop down list in B3 with three (text) values - call then a, b, and,
> c.  Based on what a user selects in the drop down, I need to perform other
[quoted text clipped - 5 lines]
>
> I'm at a loss...
Teethless mama - 18 Mar 2008 20:29 GMT
=CODE(LOWER(B3))-97

> I have a drop down list in B3 with three (text) values - call then a, b, and,
> c.  Based on what a user selects in the drop down, I need to perform other
[quoted text clipped - 5 lines]
>
> I'm at a loss...
Tyro - 18 Mar 2008 20:43 GMT
In E3 put: =IF(B3="a",0,IF(B3="b",1,IF(B3="c",2,""))) This formula will
return a 0 if B3 is "a", a 1 if B3 is "b", a 2 if B3 is "c" and an empty
string if B3 is not "a", "b" or "c". Note the formula is not case sensitive.
That is, "A" is equal to "a".  I suggest you obtain a good book on Excel by
an author such as John Walkenbach.
http://j-walk.com/ss/   He has written Excel 2003 Bible and Excel 2007 Bible
among his many books. The books cost about $40 (U.S.) and are easy reading.

Tyro

>I have a drop down list in B3 with three (text) values - call then a, b,
>and,
[quoted text clipped - 6 lines]
>
> I'm at a loss...
Mike H - 18 Mar 2008 20:50 GMT
and another

=CHOOSE(CODE(LOWER(B3))-96,0,1,2)

Mike

> I have a drop down list in B3 with three (text) values - call then a, b, and,
> c.  Based on what a user selects in the drop down, I need to perform other
[quoted text clipped - 5 lines]
>
> I'm at a loss...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.