Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default need help with sum formula

I have a worksheet with columns D thru M. In column M I have the following
sum formula, H-I. This formula is simple but what I need is a formula that
will return no value if cells D thru M have no entries.

What formula should I use?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default need help with sum formula

Use Count -- it will ignore blanks. As in:

=if(count(Range)0,sum(YourRange),"")

Regards,
Fred/

"chrisnsmith" wrote in message
...
I have a worksheet with columns D thru M. In column M I have the following
sum formula, H-I. This formula is simple but what I need is a formula
that
will return no value if cells D thru M have no entries.

What formula should I use?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default need help with sum formula

Hi,


=IF(SUM(H1:I1),SUM(H1:I1),"")

This will work if when the two cells are 0 you will be happy with a blank
entry. If not

=IF(COUNT(H1:I1),SUM(H1:I1),"")

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"chrisnsmith" wrote:

I have a worksheet with columns D thru M. In column M I have the following
sum formula, H-I. This formula is simple but what I need is a formula that
will return no value if cells D thru M have no entries.

What formula should I use?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default need help with sum formula


Thanks Fred,
This was just what I needed.

"Fred Smith" wrote:

Use Count -- it will ignore blanks. As in:

=if(count(Range)0,sum(YourRange),"")

Regards,
Fred/

"chrisnsmith" wrote in message
...
I have a worksheet with columns D thru M. In column M I have the following
sum formula, H-I. This formula is simple but what I need is a formula
that
will return no value if cells D thru M have no entries.

What formula should I use?



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



All times are GMT +1. The time now is 11:46 PM.

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"