Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF statements
Hi,
I have a column of cells ranging from F46 to F51 I want cell F51 to be the sum of F46:F50 with the following conditions: If SUM(F46:F50) = 0 then F51 to read 0 If SUM(F46:F50)<200 then F51 to read 200 If SUM(F46:F50)200 then F51 to show actual sum of F46:F50 How do I write this as a formula? Many thanks in advance, Dave |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF statements
Hi Dave,
Try: =(SUM(F46:F50)<0)*(SUM(F46:F50)<200)*200+(SUM(F46 :F50)=200)*SUM(F46:F50) Note: you need to provide for SUM(F46:F50)=200, which I have done. I assume that, if you have -ve values to deal with, you want them to display '200' also, as there's nothing in your problem description to allow for another outcome. If -ve values require a '0' result, delete the first '<' from the formula. -- Cheers macropod [Microsoft MVP - Word] "Dave in Ampthill" wrote in message ... Hi, I have a column of cells ranging from F46 to F51 I want cell F51 to be the sum of F46:F50 with the following conditions: If SUM(F46:F50) = 0 then F51 to read 0 If SUM(F46:F50)<200 then F51 to read 200 If SUM(F46:F50)200 then F51 to show actual sum of F46:F50 How do I write this as a formula? Many thanks in advance, Dave |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF statements
=IF(SUM(F46:F50)=0,0,MAX(SUM(F46:F50),200))
-- David Biddulph "Dave in Ampthill" wrote in message ... Hi, I have a column of cells ranging from F46 to F51 I want cell F51 to be the sum of F46:F50 with the following conditions: If SUM(F46:F50) = 0 then F51 to read 0 If SUM(F46:F50)<200 then F51 to read 200 If SUM(F46:F50)200 then F51 to show actual sum of F46:F50 How do I write this as a formula? Many thanks in advance, Dave |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
IF statements
One way:
=IF(SUM(F46:F50)=0,0,MAX(200,SUM(F46:F50))) Regards, Stefi €˛Dave in Ampthill€¯ ezt Ć*rta: Hi, I have a column of cells ranging from F46 to F51 I want cell F51 to be the sum of F46:F50 with the following conditions: If SUM(F46:F50) = 0 then F51 to read 0 If SUM(F46:F50)<200 then F51 to read 200 If SUM(F46:F50)200 then F51 to show actual sum of F46:F50 How do I write this as a formula? Many thanks in advance, Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with IF statements | Excel Worksheet Functions | |||
If Statements | Excel Worksheet Functions | |||
if statements | Excel Worksheet Functions | |||
IF Statements (Mutliple Statements) | Excel Worksheet Functions | |||
If statements | Excel Discussion (Misc queries) |