#1   Report Post  
Brent E
 
Posts: n/a
Default Range Blank

Good afternoon,

Is there a way to use an If statement to check to see if a range of cells is
blank? For instance, I would like to use a formula to sum B2:B10 if there is
data in at least one cell. But if all cells are blank, I would like the sum
to show a blank instead of an 0. Something like, If (B2 OR B3 OR B4...)<"",
Sum B2 to B10, Else leave blank. Any suggestions? Thanks.

Cordially,
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

One way:

=IF(COUNT(B2:B10),SUM(B2:B10),"")

Biff

"Brent E" wrote in message
...
Good afternoon,

Is there a way to use an If statement to check to see if a range of cells
is
blank? For instance, I would like to use a formula to sum B2:B10 if there
is
data in at least one cell. But if all cells are blank, I would like the
sum
to show a blank instead of an 0. Something like, If (B2 OR B3 OR
B4...)<"",
Sum B2 to B10, Else leave blank. Any suggestions? Thanks.

Cordially,



  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=IF(COUNT(B2:B10),SUM(B2:B10),"")

Hope this helps!

In article ,
"Brent E" wrote:

Good afternoon,

Is there a way to use an If statement to check to see if a range of cells is
blank? For instance, I would like to use a formula to sum B2:B10 if there is
data in at least one cell. But if all cells are blank, I would like the sum
to show a blank instead of an 0. Something like, If (B2 OR B3 OR B4...)<"",
Sum B2 to B10, Else leave blank. Any suggestions? Thanks.

Cordially,

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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
How can I replace a range of blank cells with a 0 Replacing blank cells Excel Discussion (Misc queries) 1 August 19th 05 12:01 AM
Hide columns & rows that contain "0" or blank in a range of cells lw new guest Excel Worksheet Functions 0 August 18th 05 04:27 PM
SORTING question Rebecca New Users to Excel 3 February 24th 05 05:35 PM
Lookup with search range start based on position of last blank lin rcmodelr Excel Worksheet Functions 0 November 14th 04 06:32 AM


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