Round up just a particular cell

fxtrtr17

New Member
Joined
May 27, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I have a formula where it looks at the values in C11 and D11 and gives a result in E11.
If I enter cents in D11, I want Excel to round up to next whole dollar before subtracting from C11. How would I specify that? Here is my formula:
=CEILING(IF(D11<B11,A11,C11-D11),1)
 

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.
you can use =Roundup()
so if you're wanting to round C11 up in your formula
CEILING(IF(D11<B11,A11,roundup(C11,0)-D11),1)
 
Upvote 0
you can use =Roundup()
so if you're wanting to round C11 up in your formula
CEILING(IF(D11<B11,A11,roundup(C11,0)-D11),1)

That isn't working - it is putting it at $1 over what it should be. So if I have $202 in C11 and then $131.36 in D11, it is making E11 $71 when it should be $70.
 
Upvote 0
Not sure if you can see my image, but this is what it is doing with the roundup added.
 

Attachments

  • formula.PNG
    formula.PNG
    3.4 KB · Views: 4
Upvote 0
I got it fixed, thank you!
IF(D11<B11,A11,C11-ROUNDUP(D11,0))
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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