# How to roundup with referance two formula

#### nsghargi

##### New Member
Hello,
My formula is like this in C1 Cell, I want add one more in same cell C1
1) If(B1>=A1,0,A1-B1) here A1=100,B1=30 then result is 70. But I want to convert to roundup nearest value 100.
2) Here A1=100,B1=60 then result is 40. But I want to convert to roundup nearest value 50.
Pls Solve this one.
Thank you.......

### Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try

=IF(B1>=A1,0,CEILING(A1-B1,50))

Replies
5
Views
375
Replies
4
Views
232
Replies
0
Views
231
Replies
6
Views
380
Replies
4
Views
280

1,217,760
Messages
6,138,446
Members
450,137
Latest member
HANHAN

### 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.

### Which adblocker are you using?

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

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