Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Calculate % with empty cells

Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some cells
are left empty....
What should the formula be in that case??
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Calculate % with empty cells

If your current formula is correct when all 18 cells are filled with numbers,

=SUM(A1:C6)*COUNT(A1:C6)/100

On Tue, 19 Oct 2004 20:49:19 GMT, "Jean-Paul De Winter"
wrote:

Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some cells
are left empty....
What should the formula be in that case??
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculate % with empty cells


"Jean-Paul De Winter" wrote in message
...
Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some cells
are left empty....
What should the formula be in that case??
Thanks


I would use another Cell say "E15" with formula =Count(A1:C6)
it will count the cell that have any data in it leaving empty cells.
Say you have numbers in only 15 cells so E15 would be 15.

Change your % formula to
=(Sum(A1:C6)*E15)/100

Hope this help.

MahaRaj


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Calculate % with empty cells

Just curious, but why do you suggest using another cell rather than embedding
the COUNT function in the original formula?

On Tue, 19 Oct 2004 21:07:15 GMT, "MahaRaj®" wrote:


"Jean-Paul De Winter" wrote in message
...
Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some cells
are left empty....
What should the formula be in that case??
Thanks


I would use another Cell say "E15" with formula =Count(A1:C6)
it will count the cell that have any data in it leaving empty cells.
Say you have numbers in only 15 cells so E15 would be 15.

Change your % formula to
=(Sum(A1:C6)*E15)/100

Hope this help.

MahaRaj


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculate % with empty cells

could you look into my query if you can help.

I posted it 17.54 (UK). From- MahaRaj.

Thanks


"Myrna Larson" wrote in message
...
Just curious, but why do you suggest using another cell rather than
embedding
the COUNT function in the original formula?

On Tue, 19 Oct 2004 21:07:15 GMT, "MahaRaj®"
wrote:


"Jean-Paul De Winter" wrote in message
...
Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some
cells
are left empty....
What should the formula be in that case??
Thanks


I would use another Cell say "E15" with formula =Count(A1:C6)
it will count the cell that have any data in it leaving empty cells.
Say you have numbers in only 15 cells so E15 would be 15.

Change your % formula to
=(Sum(A1:C6)*E15)/100

Hope this help.

MahaRaj






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Calculate % with empty cells

I agree with Myrna Larson. the formula is simple to use and you do not need
another cell i.e. E15 :)

I actually took long time to write the first post while Myrna Posted her
post in the mean time.

:)


"MahaRaj®" wrote in message
...

"Jean-Paul De Winter" wrote in message
...
Hi,
Suppose I have a range from A1 to C6.
I need to calculate a % out of these 18 cells
The formula I use is: (sum(A1:C6)*18)/100
This works perfectly if all cells contain a value, but what if some cells
are left empty....
What should the formula be in that case??
Thanks


I would use another Cell say "E15" with formula =Count(A1:C6)
it will count the cell that have any data in it leaving empty cells.
Say you have numbers in only 15 cells so E15 would be 15.

Change your % formula to
=(Sum(A1:C6)*E15)/100

Hope this help.

MahaRaj




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
calculate sum in between 2 empty cell Rick Excel Discussion (Misc queries) 7 August 12th 06 11:40 AM
Excel - Autom. Filter "Empty / Non Empty cells" should come first Rom Excel Discussion (Misc queries) 0 August 10th 05 04:32 PM
When I SUM cells & 1 is empty I need the result to be empty not 0 Maribel Excel Discussion (Misc queries) 1 August 2nd 05 12:49 AM
How can I convert empty strings to empty cells? Shane Excel Discussion (Misc queries) 2 July 19th 05 12:10 PM
Can blank cells created using empty Double-Quotes not be empty?? JohnI in Brisbane Excel Programming 6 September 7th 03 11:22 PM


All times are GMT +1. The time now is 01:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"