How to avoid #div/o!

SALO

Board Regular
Joined
Jul 27, 2008
Messages
66
In Cell R1 will be a number or a 0. In Cell T1 will also be a value. In cell S1 I have a formula that just does =T1/R32. The problem is when there is a 0 in R1 it returns the #div/o!. Can anyone tell me how to right the formula so it does not return the #div/o! but rather a 0 or nothing.

THanks for the help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
In Cell R1 will be a number or a 0. In Cell T1 will also be a value. In cell S1 I have a formula that just does =T1/R32. The problem is when there is a 0 in R1 it returns the #div/o!. Can anyone tell me how to right the formula so it does not return the #div/o! but rather a 0 or nothing.

THanks for the help

Try...

=IF(R1,T1/R1,0)
 
Upvote 0
Sorry guys, heres a better description

In Cell S1 I want a formula that divides the value in T1 by the value in R1

So the formula in cell S! is =T1/R1. THe problem is when the value in R sometimes will be a zero or nothing the formula returns a #div/01. Is there way that it can return no figure or vaulue instead of #div/01.
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,150
Members
448,552
Latest member
WORKINGWITHNOLEADER

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