Sum of a value has to be limited to a plural of a fraction

Ace_Quared

New Member
Joined
May 24, 2022
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I'm struggling with setting up a formula that will limit the sum of a value to a plural of the fraction it is created from.
Let me explain with an example:

The system receives fractions that represent worked hours/total hours needed to attain a FTE. Each line represents a different activity, the entire table represents all the activities from one employee and is sorted as such that the best paid hours are on top (which will be considered first to complete the FTE).
To Calculate the overall FTE for an employee we need to achieve a total of min. 10000 (each fraction is calculated and multiplied by 10000 to eliminate decimals). Although the max of 10000 is not strictly enforced because an employee can only perform a full hour (or 1/denominator of said line). Therefore the total is limited to maximum 9999 + ((1/denominator of the last selected hour)*10000). Now comes the complexity, the 9999 I used to define the maximum value of my total is not always 9999....

In the example below I will have to use 5833 + ONLY (12/27)*10000 = 10277 (I can only use 12 out of the 15 hours to achieve my FTE)
If I use 11/27 I do not reach 10000 and if I use 13/27 I would be over my limit of 9999+((1/denominator of the last selected hour)*10000)
FYI: The hours that were not allocated to the FTE will be allocated in another system.
DenominatorNumeratorN/D*10000Allocate to FTE
24​
14​
5833​
5833​
27​
15​
5556​
(12/27)*10000=4444​
25​
7​
2800​
10277​

Is there a way to setup my formulas in excel to achieve this automatically (excel that picks the right numerator to achieve more than 10000 but less than max limit across my whole column "allocate to FTE" and returns empty value in underlying cells once max tot value at the bottom is reached?

My apologies if the explanation is not explicit enough

Thanks in advance,
Kr
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
MrExcelPlayground9.xlsx
ABCD
1DenominatorNumeratorN/D*10000Allocate to FTE
2241458335833
32715555610278
42572800 
Sheet5
Cell Formulas
RangeFormula
C2:C4C2=(B2/A2)*10000
D2D2=(B2/A2)*10000
D3:D4D3=IF(AND(SUM(C$2:C3)>=10000,D2<10000),SUM(D$1:D2)+ROUNDUP((10000-SUM(D$2:D2))/10000*A3,0)/A3*10000,IF(D2>=10000,"",SUM(C$2:C3)))
 
Upvote 0
MrExcelPlayground9.xlsx
ABCD
1DenominatorNumeratorN/D*10000Allocate to FTE
2241458335833
32715555610278
42572800 
Sheet5
Cell Formulas
RangeFormula
C2:C4C2=(B2/A2)*10000
D2D2=(B2/A2)*10000
D3:D4D3=IF(AND(SUM(C$2:C3)>=10000,D2<10000),SUM(D$1:D2)+ROUNDUP((10000-SUM(D$2:D2))/10000*A3,0)/A3*10000,IF(D2>=10000,"",SUM(C$2:C3)))
Thanks, this helped! one more question, suppose the value in cell C2 surpasses the limit on its own, can that be limited using the same formula for D3:D4?
 
Upvote 0
This should do the trick:
MrExcelPlayground9.xlsx
ABCD
1DenominatorNumeratorN/D*10000Allocate to FTE
224261083310417
327155556 
42572800 
Sheet5
Cell Formulas
RangeFormula
C2:C4C2=(B2/A2)*10000
D2D2=MIN((B2/A2),(A2+1)/A2)*10000
D3:D4D3=IF(AND(SUM(C$2:C3)>=10000,D2<10000),SUM(D$1:D2)+ROUNDUP((10000-SUM(D$2:D2))/10000*A3,0)/A3*10000,IF(D2>=10000,"",SUM(C$2:C3)))
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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