Split Hours Between Two Funding Sources With Excel Formulas
Question details
Calculate the hours paid by two funding sources when the first covers up to 20 hours and the second covers the remainder.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Weekly hours are recorded in a spreadsheet and must be allocated between two funding sources using a 20-hour limit.
- Observed behavior
- The first source should receive up to 20 hours per week, and the second should receive any hours above 20.
Enter weekly hours as nonnegative numbers. The examples assume one week's hours are in B2 and, for multiple weeks, that each week occupies a separate cell from B2 through W2.
Use MIN and MAX to allocate each week's hours
Split each week's hours into two rows, then total the allocations across multiple weeks.
In cell B3, enter =MIN(B2,20) to allocate up to 20 hours to the first funding source.
In cell B4, enter =MAX(B2-20,0) to allocate any hours above 20 to the second source.
Select B3:B4 and drag the fill handle across to W3:W4. Each column will use the hours in its corresponding row 2 cell.
In X3, enter =SUM(B3:W3). In X4, enter =SUM(B4:W4) to total the hours allocated to each source.

Total multiple weeks without helper rows
Use these formulas when weekly hours are in B2:W2 and you only need the total for each funding source.
Split Funding Hours in WPS Spreadsheets
Use MIN and MAX in WPS Spreadsheets to allocate each week's hours at the 20-hour limit and total each funding source.
- 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your workbook, or create a new spreadsheet.
- 2. Enter the hours: Enter weekly hours in B2, or place successive weeks in cells B2 through W2.
- 3. Split the hours: Enter =MIN(B2,20) in B3 and =MAX(B2-20,0) in B4. Drag the fill handle across both rows for additional weeks.
- 4. Add the totals: Enter =SUM(B3:W3) in X3 and =SUM(B4:W4) in X4, then use Save to keep the workbook.

Frequently Asked Questions
What happens if someone works exactly 20 hours?
With 20 in B2, =MIN(B2,20) returns 20 for the first source and =MAX(B2-20,0) returns 0 for the second.
How do I change the funding limit?
Replace 20 in both formulas with the new limit. For example, use =MIN(B2,25) and =MAX(B2-25,0) for a 25-hour limit.
Can I use a cell for the funding limit?
Yes. Enter the limit in A1, then use =MIN(B2,$A$1) and =MAX(B2-$A$1,0). The dollar signs keep the limit fixed when you copy the formulas.
Why can't I use =SUM(MIN(B2:W2,20)) to total the first source?
MIN finds one minimum value across the range and the limit; it does not cap each week separately. Use the helper-row formulas and sum them, or use the SUMPRODUCT approach.




