#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Nested if


I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.




--
ab3d4u
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Nested if

Lots of ways, depending on your actual needs. One:


=IF(A1="a", 1, IF(A1="b", 2, IF(A1="c", 3, 4)))


Another:

=MATCH(A1,{"a","b","c","d"})


In article ,
ab3d4u wrote:

I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 187
Default Nested if

=IF(A1=B1,1,if(B1=C1,2,if(C1=D1,3,if(D1=E1,4,5))))

Dave

On Dec 19, 12:29 pm, ab3d4u
wrote:
I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.

--
ab3d4u


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Nested if

Here is an example of a nested IF:

=IF(A1="A",1,IF(A1="B",2,IF(A1="C",3,IF(A1="D",4,0 ))))

Laura


"ab3d4u" wrote in message
...

I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.




--
ab3d4u



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Nested if

=CODE(LOWER(A1))-96


"ab3d4u" wrote:


I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.




--
ab3d4u



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Nested if

Another way..........
=LOOKUP(A1,{0,"a","b","c","d",""},{"",1,2,3,4,""})

Vaya con Dios,
Chuck, CABGx3



"ab3d4u" wrote:


I have 4 "if" scenarios for which I am looking a formula. It is just a
basic scenario where I have 4 choices and I need this formula to read
the four options correctly. Kind of if a then 1, if b then 2,,,
Thanks for your help.
Merry Christmas and Happy Holidays for all.




--
ab3d4u

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
Nested IFs Alvaro Excel Worksheet Functions 4 August 12th 07 10:33 PM
nested if Gary Wessle Excel Worksheet Functions 6 August 2nd 07 05:19 AM
Nested IF Annie Excel Worksheet Functions 4 March 16th 07 08:35 PM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Nested Ifs Sal Excel Worksheet Functions 5 April 16th 06 10:43 AM


All times are GMT +1. The time now is 11:19 PM.

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"