 SOLVED

# Error #DIV/0! for average function

Hi !

I'm working in a spanish Excel and I try to make the average of 2 numbers with a simple formula :

=PROMEDIO(F16;F17)

The numbers "3" you see are in Number format so I don't understand why this simple formula is not working as there is no Zero in the equation

Thanks 4 Replies
best response confirmed by Hans Vogelaar (MVP)
Solution

# Re: Error #DIV/0! for average function

@Eleaamx I suspect that the numbers "3" are in fact texts. Setting the cell format to Numbers does not transform them to numbers. Are these perhaps resulting from an IF function where you entered "3" to be the result? Thus a 3 between quotation marks.

Try this formula:

=PROMEDIO(--(F16);--(F17))

The double hyphen forces Excel to see both threes as numbers. Does that produce a number?

You can also try =ISNUMBER(F16) and the same for F7. If the result is FALSE you are dealing with texts, hence the DIV0 error.

# Re: Error #DIV/0! for average function

It was a text even if the format cell was a number so I was able to force with the double hyphen. I didn't know about it, thank you so much

# Re: Error #DIV/0! for average function

@Eleaamx Perhaps better to focus on how the get real numbers in those two cells. Up to you.

# Re: Error #DIV/0! for average function

@Eleaamx Try using a comma (",") instead of a semicolon (";") like below

=AVERAGE(F16,F17)

If that doesn't work use the INT function (maybe ENTERO in Spanish) like below,

=AVERAGE(INT(H75),INT(H76))