Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Somecallmejosh
 
Posts: n/a
Default Combining SUM Function with Nested If Statement

Is it possible to combine a SUM Function with an IF
statement that will allow me to add multiple cells, but
leave the cell blank if the answer is zero?

Here's what I tried, but to no avail.
In cell F5, I have the following formula:
=(SUM(C5:E5),IF(F5=0,"",(SUM(C5:E5)))

Is there something wrong with the formula, or is the
combination of functions/statements not allowed? Any
help would be greatly appreciated.

Sincerely,
Josh
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=IF(SUM(C5:E5)=0,"",SUM(C5:E5))

Regards,

Peo Sjoblom

"Somecallmejosh" wrote:

Is it possible to combine a SUM Function with an IF
statement that will allow me to add multiple cells, but
leave the cell blank if the answer is zero?

Here's what I tried, but to no avail.
In cell F5, I have the following formula:
=(SUM(C5:E5),IF(F5=0,"",(SUM(C5:E5)))

Is there something wrong with the formula, or is the
combination of functions/statements not allowed? Any
help would be greatly appreciated.

Sincerely,
Josh

  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
=IF(SUM(C5:E5)=0,"",SUM(C5:E5)

--
Regards
Frank Kabel
Frankfurt, Germany

"Somecallmejosh" schrieb im
Newsbeitrag ...
Is it possible to combine a SUM Function with an IF
statement that will allow me to add multiple cells, but
leave the cell blank if the answer is zero?

Here's what I tried, but to no avail.
In cell F5, I have the following formula:
=(SUM(C5:E5),IF(F5=0,"",(SUM(C5:E5)))

Is there something wrong with the formula, or is the
combination of functions/statements not allowed? Any
help would be greatly appreciated.

Sincerely,
Josh


  #4   Report Post  
CarlosAntenna
 
Posts: n/a
Default

=if(sum(c5:e5)=0,"",sum(c5:e5))

Carlos

"Somecallmejosh" wrote in message
...
Is it possible to combine a SUM Function with an IF
statement that will allow me to add multiple cells, but
leave the cell blank if the answer is zero?

Here's what I tried, but to no avail.
In cell F5, I have the following formula:
=(SUM(C5:E5),IF(F5=0,"",(SUM(C5:E5)))

Is there something wrong with the formula, or is the
combination of functions/statements not allowed? Any
help would be greatly appreciated.

Sincerely,
Josh



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
Copy an IF function when Inserting new row Philobr Excel Discussion (Misc queries) 1 December 3rd 04 10:45 AM
how can i get the slope function to ignore missing data? Delmar Excel Discussion (Misc queries) 0 December 2nd 04 05:55 PM
Solving for X and Y with a = in the FUNCTION??? TOMSQUAD Excel Discussion (Misc queries) 3 November 29th 04 08:00 PM


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