DIV/0 problem

hbgray

Board Regular
Joined
Apr 7, 2004
Messages
211
i'm doing an average =AVERAGE(B1:B27) and it's giving me #DIV/0!

any ideas what is wrong?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
Are all the cells in the range blank or zero? That would do it.
 

hbgray

Board Regular
Joined
Apr 7, 2004
Messages
211
36     
38     
38.75  
39     
39     
39     
39     
39     
40     
40     
41     
41     
41.5   
41.5   
42     
42     
42     
42     
43     
43.5   
44     
44     
46     
46     
47     
48     
48.1   
those are the cells, that's why it is so wierd--I can do it by hand but I would like to figure this out if I can...or any of you can :)
 

hbgray

Board Regular
Joined
Apr 7, 2004
Messages
211

ADVERTISEMENT

they were but I changed it (range and the formula) and it still didn't help
 

Chitosunday

Well-known Member
Joined
Jul 14, 2003
Messages
1,017
the formula should be array formula with {} (by pressing ctrol shift enter after inputting the formula but before exiting in the cell)

{=AVERAGE(VALUE(B1:B27))}
 

hbgray

Board Regular
Joined
Apr 7, 2004
Messages
211

ADVERTISEMENT

when I did that with the value in the formula it gave me #VALUE! and #DIV/0! without it
 

Chitosunday

Well-known Member
Joined
Jul 14, 2003
Messages
1,017
I see you have peculiar space in your number
=AVERAGE(IF(B1:B27<>"",VALUE((SUBSTITUTE(B1:B27,CHAR(160),"")))))
 

Forum statistics

Threads
1,147,676
Messages
5,742,555
Members
423,737
Latest member
tom_xls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top