# DIV/0 problem

#### hbgray

##### Board Regular
i'm doing an average =AVERAGE(B1:B27) and it's giving me #DIV/0!

any ideas what is wrong?

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.
Are all the cells in the range blank or zero? That would do it.

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

Is the number formatted as text?

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

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))}

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

CAn you email to me your file so i can check what is wrong

I see you have peculiar space in your number
=AVERAGE(IF(B1:B27<>"",VALUE((SUBSTITUTE(B1:B27,CHAR(160),"")))))

Replies
5
Views
350
Replies
3
Views
175
Replies
2
Views
305
Replies
2
Views
116
Replies
2
Views
154

1,221,214
Messages
6,158,571
Members
451,501
Latest member
andysacko

### 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.

### Which adblocker are you using?

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

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