No More #DIV/0!

Billionzz

Board Regular
Joined
Jun 18, 2002
Messages
99
I have the following formula in cell D54(=1650/C54)I get #DIV/0! when there is a blank space in coloum C.

This isn't a problem itself but when I try to run the average of C2:C100 it doesn't work because of the blank spaces.

Would someone tell me the way around this?

Thanks for your help.

Bill
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi Juan,

When I try to get the average for C2:C100 I get the error #DIV/0! if any of the cells C2:C100 have #DIV/0! in them.

Bill
This message was edited by Billionzz on 2002-08-26 20:52
 
Upvote 0
Yes, but, that's not what you first said. You said that the error was in column D (D54 actually), and that you were having problems to average column C... so... confused now.
 
Upvote 0
Yes your question is confusing. I presume you mean yu are trying to get the average of column D (as column D is where the #DIV/0 entry is).

You shoule be able to get the AVERage for column C as Pablo has said (even if column C contains blank or NULL entries).

If you are infact tryign to AVERAGE column D then you could try an if statement like this

IF(C64="",0,1650/C64)

This will place zero in column D if column C is blank.

If this is not what you want I think you need to explain your question in more detail.

voodoo
 
Upvote 0
Hi Juan & voodoo,

Sorry for posting the cells as C when they should have been D.

But voodoo you figured it out and your solution works good.

Thanks to both of you again.

Bill
 
Upvote 0

Forum statistics

Threads
1,222,195
Messages
6,164,510
Members
451,900
Latest member
lamski

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
Back
Top