Dividing Problem

DanMun

New Member
Joined
Feb 18, 2011
Messages
43
Probably a dumb question! Example: Dividing an odd number rounds up until I move decimal point, but when I do that and remove numbers it leaves 0. in cell. I would like to have number divided exactly and then when numbers that effect this cell are removed for an empty cell to appear.

Thanks
 

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
Probably a dumb question! Example: Dividing an odd number rounds up until I move decimal point, but when I do that and remove numbers it leaves 0. in cell. I would like to have number divided exactly and then when numbers that effect this cell are removed for an empty cell to appear.

Thanks

Can you supply additional information?
 
Upvote 0
Can you supply additional information?

Cell C8 formula is =SUM(C6:C7). Cell D9 formula is C8/2 with formatting of number, custom, #. When entering the number 3 in cell C6 and the number 2 in cell C7, cell C8 shoes the correct answer of 5. Here's the problem, cell D9 has the formula =C8/2 but shows the number 3 and it should be 2.5. Now I can go up on the top and click the increase decimal button once and it changes the number in D9 which is the correct answer. Now when I delete the numbers in cells C6 and C7 what is showing in D9 is .0 and I can't figure it out!
 
Upvote 0
Empty cells are automatically designated as 0s in every formula...
Note that cells are displayed rounded, their true value is still in decimals unless you explicitly tells Excel to round the numbers.

Now if you don't want to show 0s when both cells are empty.....
In 2010 (sorry haven't done 2003 in a LONG time), I can do
=IF(AND(ISBLANK(C6),ISBLANK(C7)), "", SUM(C6:C7)/2)
Still that only places and empty string when both cells are blank and not a try empty cell... There is no way of getting around unless you get into VBA.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

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