Round up formula Numbers
I am looking for a formula that will divide the amount charged by my sample machinist (M) by $84 and then round up to the nearest $21 (N). I charge by the 15 minute interval.
iPad Pro, iPadOS 18
I am looking for a formula that will divide the amount charged by my sample machinist (M) by $84 and then round up to the nearest $21 (N). I charge by the 15 minute interval.
iPad Pro, iPadOS 18
Maybe if you explained what value you're expecting...?
As written in your original post:
> ... divide the amount charged by my sample machinist (M) by $84 and then round up to the nearest $21 (N)
In your example, M73 contains the value $184.50
$184.5 divided by $84 is 2.1964285714
Neil's formula is rounding this up to 3, which is then multiplied by 21 for the result of 63, as noted.
What do you expect to see here?
Also worth clarifying what you mean by:
> then round up to the nearest 21
You can round up. You can round to nearest. Sometimes 'round to nearest' is the same as 'round up', but sometimes not... Technically, 2.1964285714 rounded 'to nearest' is 2, not 3.
The other interpretation of your question, based on the screenshot, is that $184.5 @$84/hour is ≈2.196 hours, and you want this number of hours rounded to the nearest 15 minute interval, but then I don't see where 21 comes in, other than as the rate for 1/4 hour at $84/hour.
So, again, what value are you trying to attain in the above example?
N72 = ROUNDUP(4×M72÷84,0)÷4
Hi Niel,
Thank you for your reply.
Please find attached a screenshot, it doesn’t seem to be working. You can see the line above is correct where I have manually calculated the amount. I am doing something wrong?
Hi Camelot,
Apologies for not explaining myself clearly.
Your interpretation of: “The other interpretation of your question, based on the screenshot, is that $184.5 @$84/hour is ≈2.196 hours, and you want this number of hours rounded to the nearest 15 minute interval….” Is correct. Me and my creative brain went straight to $84 divided by 4 (15 minute intervals) is 21.
Badunit’s formula works a treat. Thank you so much for your time and expertise.
Hi Badunit,
Thank you so much….works a treat.
I now have another part I would like to add to the formula.
I would like to say if the machinist is Kate, I would like to use your round up formula, however if the machinist is Jane, I would like to manually add how many hours into column N.
I recommend you plan ahead vs slowly increasing the scope.
One way would be
=IFS(A="Jane Stewart", formula for jane, A="Kate lastname", formula for kate, TRUE, formula for everyone else)
You will put that in the cell at the top of the column, in the first data row (not header), and it will spill into all the other rows. Or you can change each A to A2 (assuming the first data row is row 2) and then fill down with the formula manually.
If everyone except Jane has the same formula you can instead use
=IF(A="Jane Stewart", formula for jane, formula for everyone else)
If you are later going to be changing who has which formula or will be adding new people, you can use a new column to specify formula 1,2,3, etc for each to use. You would use that column instead of using names in the formula. If column C is the new column with the designator in it you can do something like this:
=IFS(C=1, formula for those who are 1, C=2, formula for those who are 2, C=3, formula for those who are 3)
Or you can use SWITCH
=SWITCH(C, 1, formula for 1, 2, formula for 2, 3, formula for 3)
or you can use CHOOSE
=CHOOSE(C, formula for 1, formula for 2, formula for 3)
If you use consecutive numbers (starting at 1) to designate which formula to use, CHOOSE is a concise option. If you use letters/text, SWITCH is a good option. If it is only going to be two formulas (one for Jane and one for everyone else), IF is a good option. IF and IFS are the most flexible options; you can create more complicate conditions.
Yeah, too much information. I don't know what else you have in mind so I gave you a few options.
Perfect! I have gone with option 1 and it has worked a treat! So cleaver….thank you very much, I really appreciate your expertise and assistance. Happy New Year!
Use one such as:
ROUNDUP(cell÷84,0)×21
(262353)
Round up formula Numbers