Qty required to get to the next 100th

bj6264

Board Regular
Joined
May 23, 2010
Messages
50
Hello, I have a a big list of varying numbers and I need to calculate how many are needed to reach the next 100. eg

145 result needed would be 55 (next 100 is 200)
23 result needed would be 77 (next 100 is 100)
412 result needed would be 88 (need 100 is 500)

I've got around this by sorting and changing the figure required each time but as the list grows, this is a bit tiresome. Is there a formula that would do this easily?

Thanks:)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about
=CEILING(A1,100)-A1
 
Upvote 0
Data Range
[TABLE="class: grid"]
<tbody>[TR]
[TD][/TD]
[TD]
A
[/TD]
[TD]
B
[/TD]
[TD]
C
[/TD]
[/TR]
[TR]
[TD]
1
[/TD]
[TD]
145​
[/TD]
[TD]
=MOD(A1,100)​
[/TD]
[TD]
=100-B1​
[/TD]
[/TR]
[TR]
[TD]
2
[/TD]
[TD]
23​
[/TD]
[TD]
=MOD(A2,100)​
[/TD]
[TD]
=100-B2​
[/TD]
[/TR]
[TR]
[TD]
3
[/TD]
[TD]
412​
[/TD]
[TD]
=MOD(A3,100)​
[/TD]
[TD]
=100-B3​
[/TD]
[/TR]
</tbody>[/TABLE]

or

Data Range
[Table="class: grid"][tr][td] [/td][td]
A
[/td][td]
B
[/td][/tr]
[tr][td]
1
[/td][td]
145​
[/td][td]
=100-MOD(A1,100)​
[/td][/tr]


[tr][td]
2
[/td][td]
23​
[/td][td]
=100-MOD(A2,100)​
[/td][/tr]


[tr][td]
3
[/td][td]
412​
[/td][td]
=100-MOD(A3,100)​
[/td][/tr]
[/table]
 
Last edited:
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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