tatarrific
New Member
- Joined
- Feb 26, 2021
- Messages
- 2
- Office Version
- 2016
- Platform
- Windows
Hi all - total newbie, need help please.
I was able to figure out how to create formulas to calculate prorated salary per month based on start/end dates, but am stumped on the next step. I want to be able to filter the totals for date ranges, so that I can say, show me salary totals from 1/1-6/30 only, or from 9/30-12/31 only. I thought there'd be an easy way to do it through a pivot, but maybe there's a better way to do it with a formula? Any help most appreciated.
Also asked here Need to figure out a way to pull data based on a dynamic date range
I was able to figure out how to create formulas to calculate prorated salary per month based on start/end dates, but am stumped on the next step. I want to be able to filter the totals for date ranges, so that I can say, show me salary totals from 1/1-6/30 only, or from 9/30-12/31 only. I thought there'd be an easy way to do it through a pivot, but maybe there's a better way to do it with a formula? Any help most appreciated.
Cell Formulas | ||
---|---|---|
Range | Formula | |
G5:G14 | G5 | =SUM(D5:F5) |
H5:S14 | H5 | =IF(AND($B5<=H$4,$C5>=H$4),($G5/24)*H$3,0) |
T5:T14 | T5 | =SUM(H5:S5) |
C12:C14,C5:C10 | C5 | =+$B$2 |
E5:E14 | E5 | =+D5*$B$3 |
D15:T15 | D15 | =SUM(D5:D14) |
Also asked here Need to figure out a way to pull data based on a dynamic date range
Last edited by a moderator: