Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If "A" is constant for both or conditions, how does one write the if
statement? I tried to do this and got and error: If(or($b4="UA", sum($r4+$t40, and($a4="S")),1,2) -- Rick Rack |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Rick,
You have a syntax error (missing closing parenthesis): sum($r4+$t40 correct: sum($r4+$t4)0 But I can't tell wether your formula gives the result you want, because you don't tell us what you want exactly! Regards, Stefi €žRick€ť ezt Ă*rta: If "A" is constant for both or conditions, how does one write the if statement? I tried to do this and got and error: If(or($b4="UA", sum($r4+$t40, and($a4="S")),1,2) -- Rick Rack |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rick,
Is this what you require? =IF(AND(OR($B4="UA",$R4+$T40), ($A4="S")),1,2) If B4="UA OR R4+T40 AND A4="S" then results is 1, otherwise 2 "Rick" wrote: If "A" is constant for both or conditions, how does one write the if statement? I tried to do this and got and error: If(or($b4="UA", sum($r4+$t40, and($a4="S")),1,2) -- Rick Rack |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
maybe
=IF(OR($B4="UA",AND($R4+$T40,$A4="S")),1,2) but where is A constant? -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Rick" wrote in message ... If "A" is constant for both or conditions, how does one write the if statement? I tried to do this and got and error: If(or($b4="UA", sum($r4+$t40, and($a4="S")),1,2) -- Rick Rack |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
combine if(and statement | Excel Worksheet Functions | |||
Nesting IF's and AND's - a bit of help please... | Excel Worksheet Functions | |||
IF's & AND's | Excel Discussion (Misc queries) | |||
SUMPRODUCT with AND's and OR's? | Excel Worksheet Functions | |||
long IF statement with lots of OR's | Excel Programming |