Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2007

Tip: Looking for answers? Try searching our database.

sum cells with numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmcap - 01 Feb 2007 03:52 GMT
This shouldn't be too diffacult but I can't seem to find the function that
would allow me to sum the cells with numbers and then divide that by the
number of blank cells.
e.g. cells A1:A5, if A1 is 5, A2 is 10 and cells A3 through A5 are blank
then the answer would be 5.  5+10/3=5
I tried isnumber and isblank but that doesn't work.  Any ideas?
T. Valko - 01 Feb 2007 04:29 GMT
What result do you want if all the cells contain numbers?

Biff

> This shouldn't be too diffacult but I can't seem to find the function that
> would allow me to sum the cells with numbers and then divide that by the
> number of blank cells.
> e.g. cells A1:A5, if A1 is 5, A2 is 10 and cells A3 through A5 are blank
> then the answer would be 5.  5+10/3=5
> I tried isnumber and isblank but that doesn't work.  Any ideas?
Max - 01 Feb 2007 08:35 GMT
A play using COUNTBLANK might suffice:
=IF(COUNTBLANK(A1:A5)=0,"",SUM(A1:A5)/COUNTBLANK(A1:A5))
If there's no blank cells, it'll return a blank: ""
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> This shouldn't be too difficult but I can't seem to find the function that
> would allow me to sum the cells with numbers and then divide that by the
> number of blank cells.
> e.g. cells A1:A5, if A1 is 5, A2 is 10 and cells A3 through A5 are blank
> then the answer would be 5.  5+10/3=5
> I tried isnumber and isblank but that doesn't work.  Any ideas?
Roger Govier - 01 Feb 2007 11:11 GMT
Hi

Assuming you just want the sum of the numbers if there are no blanks in
the range, then one way would be
=SUM(A1:A5)/MAX(1,COUNTIF(A1:A5,""))

Signature

Regards

Roger Govier

> This shouldn't be too diffacult but I can't seem to find the function
> that
[quoted text clipped - 5 lines]
> then the answer would be 5.  5+10/3=5
> I tried isnumber and isblank but that doesn't work.  Any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.