PrettyGood_Not Great
Board Regular
- Joined
- Nov 24, 2023
- Messages
- 95
- Office Version
- 365
- Platform
- Windows
Hi, I have a challenge to produce a column total above the header row, where the total is the sum product of the entire row, after each entry has been multiplied against the rate table. Currently showing in row A of the data table is the double XLOOKUP to find the rate.
Thanks to @Fluff for the solution in column H where this operation is being performed for the rows. The challenge here is to have the same results for the column totals, BUT it needs to produce a subtotal when filtering on the Charge Codes (column I). Anyone know a 365 solution to this?
Thanks to @Fluff for the solution in column H where this operation is being performed for the rows. The challenge here is to have the same results for the column totals, BUT it needs to produce a subtotal when filtering on the Charge Codes (column I). Anyone know a 365 solution to this?
book1.xlsm | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | |||
1 | Subtotal--> | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 192.5 | 198.3 | 198.3 | 198.3 | |||||||||||
2 | RateCode | 2023 | 2024 | 2025 | 2026 | 2027 | SUM Result | Charge Code | Skill/Rate | Jan-24 | Feb-24 | Mar-24 | Apr-24 | May-24 | Jun-24 | Jul-24 | Aug-24 | Sep-24 | Oct-24 | Nov-24 | Dec-24 | Jan-25 | Feb-25 | Mar-25 | |||
3 | R1 | 186.9 | 192.5 | 198.3 | 204.2 | 210.3 | 269685.2 | A101 | A1R1 | 108 | 120 | 150 | 114 | 114 | 138 | 75 | 75 | 90 | 71 | 75 | 75 | 68 | 75 | 47 | |||
4 | R2 | 131.9 | 135.9 | 139.9 | 144.1 | 148.5 | 186573.3 | A102 | B1R2 | 81 | 120 | 150 | 114 | 114 | 138 | 75 | 75 | 90 | 71 | 75 | 75 | 68 | 75 | 47 | |||
5 | R3 | 106.0 | 109.2 | 112.4 | 115.8 | 119.3 | 73516.2 | A103 | C1R3 | 41 | 45 | 56 | 43 | 43 | 52 | 45 | 45 | 54 | 43 | 45 | 45 | 41 | 45 | 28 | |||
6 | R4 | 82.1 | 84.5 | 87.1 | 89.7 | 92.4 | 90737.4 | A104 | D1R4 | 68 | 75 | 94 | 71 | 71 | 86 | 75 | 75 | 90 | 71 | 75 | 75 | 68 | 75 | 0 | |||
7 | R5 | 47.3 | 48.7 | 50.1 | 51.6 | 53.2 | 47005.4 | A105 | E1R5 | 61 | 68 | 84 | 64 | 64 | 78 | 68 | 68 | 81 | 64 | 68 | 68 | 61 | 68 | 0 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
K1:Y1 | K1 | =XLOOKUP(RIGHT($J3,2),$A$3:$A$7,XLOOKUP(YEAR(K$2),$B$2:$F$2,$B$3:$F$7)) |
H3:H7 | H3 | =SUM(MAP($K$2:$Y$2,K3:Y3,LAMBDA(a,b,b*XLOOKUP(RIGHT($J3,2),$A$3:$A$7,XLOOKUP(YEAR(a),$B$2:$F$2,$B$3:$F$7))))) |
Last edited by a moderator: