Solved

Calculate new number based on multiples of ?

Posted on 2014-03-07
3
237 Views
Last Modified: 2014-03-07
Hi Experts

Need some help with my latest challenge.  If in cell A2 I have a number of 50.  In B2 I have a multiple of 30.  Keeping a whole number, how many additional widgets do I need to make a the closest multiple of 30 (rounding up).  So the answer would be 60 or 2 multiples of 30 where I have to add 10 to the original number.  

If I have a number in A3 of 15 and 30 is the multiple than the answer would be 30.

I've attached a simple spreadsheet to help explain in an easier way what I need.  

any help would be greatly appreciated as always.

Spudmcc (andy)
example.xlsx
0
Comment
Question by:spudmcc
3 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39913117
Try, in C2:

=CEILING(A2,B2)

copied down

and in D2:

=C2-A2

copied down
0
 
LVL 35

Expert Comment

by:mvidas
ID: 39913118
Hi Andy,

You can use ROUNDUP after dividing the number by the multiple, then multiply that result by the multiple amount itself:

=ROUNDUP(A2/B2,0)*B2

Fill down as needed.

Matt

EDIT: Nice use of CEILING, NBVC, I often forget about that function.
0
 

Author Closing Comment

by:spudmcc
ID: 39913154
This was spot on!  I so appreciate your knowledge and help in resolving this challenge for me.

Much thanks!

Andy
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now