Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF and or function
I need a formaula that says:
If Cell B1 contains SA or A or D or SD then cell C2 reads 4 for SA or 3 for A or 2 for D or 1 for SD. I hope that makes sense. I know how to do it for yes and no but not when the cell could have four different entries. Thank you |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF and or function
=LOOKUP(B1,{"A","D","SA","SD"},{3,2,4,1})
"EOB" wrote: I need a formaula that says: If Cell B1 contains SA or A or D or SD then cell C2 reads 4 for SA or 3 for A or 2 for D or 1 for SD. I hope that makes sense. I know how to do it for yes and no but not when the cell could have four different entries. Thank you |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF and or function
Hi
Try entering in C2 =IF(B1="SA",4,IF(B1="A",3,IF(B1="D",2,IF(B1="SD",1 ,"")))) -- Regards Roger Govier "EOB" wrote in message ... I need a formaula that says: If Cell B1 contains SA or A or D or SD then cell C2 reads 4 for SA or 3 for A or 2 for D or 1 for SD. I hope that makes sense. I know how to do it for yes and no but not when the cell could have four different entries. Thank you |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
IF and or function
Thank you roger this was perfect.
"Roger Govier" wrote: Hi Try entering in C2 =IF(B1="SA",4,IF(B1="A",3,IF(B1="D",2,IF(B1="SD",1 ,"")))) -- Regards Roger Govier "EOB" wrote in message ... I need a formaula that says: If Cell B1 contains SA or A or D or SD then cell C2 reads 4 for SA or 3 for A or 2 for D or 1 for SD. I hope that makes sense. I know how to do it for yes and no but not when the cell could have four different entries. Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need some comments on my Utility_Move class module. | Excel Worksheet Functions | |||
Creating a Custom Excel Function to Calculate Gini Coefficients | Excel Worksheet Functions | |||
Date & Time | New Users to Excel | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions |