#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default 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
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
Help with IF statements Lil Excel Worksheet Functions 0 May 4th 07 06:02 AM
If Statements Motaad Excel Worksheet Functions 2 April 16th 07 05:50 PM
if statements SB777 Excel Worksheet Functions 3 April 13th 07 06:42 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If statements paule1982 Excel Discussion (Misc queries) 4 February 18th 06 05:09 PM


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