Round a number up or down if cell already contains a formula

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
Hi,

I have a cell which contains the formula =(E10/D10)*100. This cell returns a number 79.23457.

How do I round this to the nearest whole number? Changing the format to number and 0 decimal places
won't work as I need to apply a CountIfs to this cell an the result is incorrect (technically the .23457 is
still there, you just cannot see it)

Gerry
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Have you tried...

Code:
=ROUND((E10/D10)*100,0)

I hope this helps!

Hi S.H.A.D.O,

Thanks for your answer. This is still throwing my CountIf off. It looks like the CountIf is still treating the number as having decimal points rather than as a whole number.

Gerry
 
Upvote 0
Hold on a minute. Your Round suggestion may well work. I need to try it on a larger sample size to make sure.
 
Upvote 0
Yeah, it works perfectly. One of my CountIfs was wrong. Formatting wasn't enough. It was your Round function that made everything click.
Thanks a million.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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