Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to do nested IF formulas

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default how to do nested IF formulas

Try this:

=SUM((E1={"a","b","c"})*{1,2,3})


Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BigTim" wrote:

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default how to do nested IF formulas

=IF(E3="i",1,IF(E3="b",2,IF(E3="p",3,0)))

--
Allllen


"BigTim" wrote:

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to do nested IF formulas

Wow, that works! Thanks.

"Ron Coderre" wrote:

Try this:

=SUM((E1={"a","b","c"})*{1,2,3})


Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BigTim" wrote:

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default how to do nested IF formulas

I'm glad that worked for you....(thanks for letting me know)

***********
Regards,
Ron

XL2002, WinXP


"BigTim" wrote:

Wow, that works! Thanks.

"Ron Coderre" wrote:

Try this:

=SUM((E1={"a","b","c"})*{1,2,3})


Does that help?
***********
Regards,
Ron

XL2002, WinXP


"BigTim" wrote:

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how to do nested IF formulas

One mo
=(e1="a")+2*(e1="b")+3*(e1="c")



BigTim wrote:

I'm trying to create an if statment such that
if E1=a then 1
if E1=b then 2
if E1=c then 3
else all = 0

I've been trying the formula like so: if(E3=i,1,((E3=b,2),(E3=p,3,0))0)
I can't seem to get the formula to work. Can someone help me with this?

Thanks.


--

Dave Peterson
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
How to Evaluate Dynamic DDE Formulas MArcus Baffa Excel Worksheet Functions 5 September 12th 06 10:35 PM
How do I use wild cards in nested array formulas? hopeit Excel Worksheet Functions 7 August 16th 05 02:18 AM
locking formulas?? Rob Excel Discussion (Misc queries) 1 July 27th 05 09:27 AM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM


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