Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Allocated amount rounded to nearest .25 without exceeding total

I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. How do I do this? I'm working with
hours and allocating overtime between projects. example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Allocated amount rounded to nearest .25 without exceeding total

Instead of having the same formula for the second time allocation,
just subtract the first calculated time from the Overtime - then they
will always add up to the total.

Hope this helps.

Pete

On Aug 24, 5:24*pm, sheri wrote:
I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. *How do I do this? *I'm working with
hours and allocating overtime between projects. *example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. *I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. *Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). *The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Allocated amount rounded to nearest .25 without exceeding tota

Good point. Feeling dumb now but thanks
"Pete_UK" wrote:

Instead of having the same formula for the second time allocation,
just subtract the first calculated time from the Overtime - then they
will always add up to the total.

Hope this helps.

Pete

On Aug 24, 5:24 pm, sheri wrote:
I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. How do I do this? I'm working with
hours and allocating overtime between projects. example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Allocated amount rounded to nearest .25 without exceeding tota

You're welcome, Sheri - thanks for feeding back.

Pete

On Aug 24, 6:07*pm, sheri wrote:
Good point. *Feeling dumb now but thanks



"Pete_UK" wrote:
Instead of having the same formula for the second time allocation,
just subtract the first calculated time from the Overtime - then they
will always add up to the total.


Hope this helps.


Pete


On Aug 24, 5:24 pm, sheri wrote:
I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. *How do I do this? *I'm working with
hours and allocating overtime between projects. *example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. *I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. *Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). *The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Allocated amount rounded to nearest .25 without exceeding total

Try the below..
=ROUND((C5*F6)/0.25,2)*0.25
which brings to exactly 5.25

OR
=ROUND((C5*F6)/0.25*0.25,2)

If this post helps click Yes
---------------
Jacob Skaria


"sheri" wrote:

I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. How do I do this? I'm working with
hours and allocating overtime between projects. example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Allocated amount rounded to nearest .25 without exceeding tota

Neither worked, both game out with fractions not rounded to nearest .25
Thanks tho.

"Jacob Skaria" wrote:

Try the below..
=ROUND((C5*F6)/0.25,2)*0.25
which brings to exactly 5.25

OR
=ROUND((C5*F6)/0.25*0.25,2)

If this post helps click Yes
---------------
Jacob Skaria


"sheri" wrote:

I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. How do I do this? I'm working with
hours and allocating overtime between projects. example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Allocated amount rounded to nearest .25 without exceeding tota

I mean to say you get the different because you are using Round...which
rounds up both calculation and the sum is more than 5.25

If this post helps click Yes
---------------
Jacob Skaria


"sheri" wrote:

Neither worked, both game out with fractions not rounded to nearest .25
Thanks tho.

"Jacob Skaria" wrote:

Try the below..
=ROUND((C5*F6)/0.25,2)*0.25
which brings to exactly 5.25

OR
=ROUND((C5*F6)/0.25*0.25,2)

If this post helps click Yes
---------------
Jacob Skaria


"sheri" wrote:

I'd like to be able to allocate an amount to the nearest .25 without
exceeding the total being allocated. How do I do this? I'm working with
hours and allocating overtime between projects. example: Project 1 hours =
40 Project 2 hours = 8 OT is 5.25. I need to allocate the 5.25 to each of
the projects based on their ratio without exceeding 5.25. Currently using
ROUND((C5*F6)/0.25,0)*0.25 where c5 is the OT (5.25) and F6 is % of project
time to total time (ex. 40/48). The results are Project 1= 4.5 and Project 2
= 1 but this exceeds the total of 5.25.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
show fractions rounded up to nearest 1/16th inch John G.[_2_] Excel Discussion (Misc queries) 17 April 23rd 23 03:43 AM
subtract entries from allocated total until it reaches zero kirbydog Excel Worksheet Functions 1 August 20th 09 04:02 AM
Ensuring input is rounded up to nearest 10 RayC Excel Discussion (Misc queries) 6 November 25th 07 06:31 PM
How do I get a calculated amount to round to the nearest nickel? Raina Excel Worksheet Functions 3 July 24th 07 07:28 AM
How do I calculate Amount of Sales Tax from Total Amount? MikeS Excel Worksheet Functions 1 March 26th 05 07:49 PM


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"