Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EOB EOB is offline
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EOB EOB is offline
external usenet poster
 
Posts: 5
Default 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
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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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