Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Thennessee
 
Posts: n/a
Default Averaging function is pulling back a zero in Excel

I have a simple averaging formula in an excel spreadsheet that is now
providing nothing but a zero as a result of the formula. I have ensured that
the cell format is for "Number" and that all of the cells for the formula are
formatted for "number" as well. I am not getting the "DIV/0!" error so I know
it is not a dividing by zero error.
  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

Are you using AVERAGE() or a formula you created to do the average?

Maybe the precission you chose to display is too small. i.e. if you have a
cell formatted to show no decimal places a number like .15 will be rounded to
0. Try increasing precision: Format-Cells-'Number' tab

--
Regards,
Dave


"Thennessee" wrote:

I have a simple averaging formula in an excel spreadsheet that is now
providing nothing but a zero as a result of the formula. I have ensured that
the cell format is for "Number" and that all of the cells for the formula are
formatted for "number" as well. I am not getting the "DIV/0!" error so I know
it is not a dividing by zero error.

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Changing the format of the cell doesn't change the value in the cell. But the
next change you make to that cell will make it numeric.

One way to coerce these text numbers to number numbers is to:
copy an empty cell
select the range to fix
edit|paste special|check add

If that doesn't work for you, maybe it's because there's something else in the
cell. If you copied the data from a web page, you may have those HTML
non-breaking spaces in the cell.

You may want to try David McRitchie's routine to clean that stuff up:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Thennessee wrote:

I have a simple averaging formula in an excel spreadsheet that is now
providing nothing but a zero as a result of the formula. I have ensured that
the cell format is for "Number" and that all of the cells for the formula are
formatted for "number" as well. I am not getting the "DIV/0!" error so I know
it is not a dividing by zero error.


--

Dave Peterson
  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

More info, please. What exactly is the formula you are using? What is
in the referenced cells? What is the result if you use =COUNT(dataRange)?

Jerry

Thennessee wrote:

I have a simple averaging formula in an excel spreadsheet that is now
providing nothing but a zero as a result of the formula. I have ensured that
the cell format is for "Number" and that all of the cells for the formula are
formatted for "number" as well. I am not getting the "DIV/0!" error so I know
it is not a dividing by zero error.


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
Excel Should Have a History Function. Ray M. Excel Worksheet Functions 2 September 23rd 05 08:03 AM
linear interpolation function in excel tskoglund Excel Worksheet Functions 4 September 10th 05 03:31 AM
@ and "function not valid" error (Excel 2003) Acert93 New Users to Excel 1 September 2nd 05 07:17 AM
calling a C++ program from Excel 2000 and passing a result from C++ back to an excel spreadsheet ellis kurland Excel Discussion (Misc queries) 3 August 15th 05 04:10 PM
moving excel in word back to excel Briton Excel Discussion (Misc queries) 0 January 21st 05 10:43 PM


All times are GMT +1. The time now is 12:05 AM.

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"