Home |
Search |
Today's Posts |
#1
|
|||
|
|||
If-Then Statements
For Cell C1: IF Cell A1= "W", Then C1=B1/4.
IF Cell A1= "BW", Then C1=B1/2 IF Cell A1= "SM", Then C1 = B1/2 IF Cell A1= "M", Then C1 = B1 How do I write an if statement in C1 so that it will return these varied values of B1 depending on the text in A1? Thanks |
#2
|
|||
|
|||
In cell C1, put the formula:
=IF(A1="W",B1/4, IF(A1="BW", B1/2, IF(A1="SM", B1/2, IF(A1="M",B1,"error?")))) Regards Trevor "sbruner" wrote in message ... For Cell C1: IF Cell A1= "W", Then C1=B1/4. IF Cell A1= "BW", Then C1=B1/2 IF Cell A1= "SM", Then C1 = B1/2 IF Cell A1= "M", Then C1 = B1 How do I write an if statement in C1 so that it will return these varied values of B1 depending on the text in A1? Thanks |
#3
|
|||
|
|||
One way:
=IF(A1="W",B1/4,IF(OR(A1="BW",A1="SM"),B1/2,IF(A1="M",B1,""))) In article , "sbruner" wrote: For Cell C1: IF Cell A1= "W", Then C1=B1/4. IF Cell A1= "BW", Then C1=B1/2 IF Cell A1= "SM", Then C1 = B1/2 IF Cell A1= "M", Then C1 = B1 How do I write an if statement in C1 so that it will return these varied values of B1 depending on the text in A1? Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nesting more than nine IF statements in Excel | Excel Worksheet Functions | |||
More than 7 IF statements in one arguement | Excel Worksheet Functions | |||
VLOOKUP + IF STATEMENTS | Excel Discussion (Misc queries) | |||
Nested IF statements | Excel Worksheet Functions | |||
If statements | Excel Worksheet Functions |