Getting Rid of the #DIV/0! Cell Value

atvsource

Board Regular
Joined
Feb 26, 2009
Messages
86
I'm getting the dreaded #DIV/0! value. Here's the formula I'm using:

Code:
=IF($B$20>=E6,"Budget",ROUNDUP((E6-$B$20)/$B$21,0))

I've tried to fix this, but I only seem to get the VALUE text to show up for all the things I've tried.

Anyone have a suggestion?

Here's what the different cells represent:
B20 = Investible Amount
E6 = Actual Price
B21 = Passive Income
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

c_m

Well-known Member
Joined
May 29, 2008
Messages
836
Try:
=IF($B$21=0,"",IF($B$20>=E6,"Budget",ROUNDUP((E6-$B$20)/$B$21,0)))
 
Upvote 0

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=IF($B$21="","",IF($B$20>=E6,"Budget",ROUNDUP((E6-$B$20)/$B$21,0)))
 
Upvote 0

c_m

Well-known Member
Joined
May 29, 2008
Messages
836
ADVERTISEMENT
do you have div!0 error in B20 or B21?
 
Upvote 0

atvsource

Board Regular
Joined
Feb 26, 2009
Messages
86
Nope, however, B21 has a value of $0.00 sometimes so would that $0.00 in B21 cause teh #DIV/0! issue?
 
Upvote 0

c_m

Well-known Member
Joined
May 29, 2008
Messages
836
ADVERTISEMENT
yes B21 will cause this issue...did you try the suggested formula:
=IF($B$21=0,"",IF($B$20>=E6,"Budget",ROUNDUP((E6-$B$20)/$B$21,0)))
 
Upvote 0

atvsource

Board Regular
Joined
Feb 26, 2009
Messages
86
yes B21 will cause this issue...did you try the suggested formula:
=IF($B$21=0,"",IF($B$20>=E6,"Budget",ROUNDUP((E6-$B$20)/$B$21,0)))

Tried this formula, but now when B20 is greater than E6, Budget does not show up, but instead a blank cell. So something else is also wrong with the formula.
 
Upvote 0

atvsource

Board Regular
Joined
Feb 26, 2009
Messages
86
Tried this formula, but now when B20 is greater than E6, Budget does not show up, but instead a blank cell. So something else is also wrong with the formula.

After some fig'n with the formula, I was able to get it to work.. there was another issue with another formula that this also had to work with. After fixing the other formula, it all works great now.

Thanks for all the help!! Saved me a lot of time!
 
Upvote 0

Forum statistics

Threads
1,195,673
Messages
6,011,087
Members
441,582
Latest member
Topkapi

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