MrRajKumar
Active Member
- Joined
- Jan 29, 2008
- Messages
- 291
- Office Version
- 365
- Platform
- Windows
Hi,
I have the following data.
A2:C12
E2:F4
H2,
=SORT(UNIQUE(A2:A12))
L2: 1/1/2024
L3: 1/31/2024
L2:L3 is a month period.
In I2 I would like to get based on the following conditions.
1) If the dates in column F are in the month period (L2:L3) and take those dates for the values in H2:H5
2) Then, if these dates are in column C, then FILTER column B values for the values H2:H5
3) Then, SUM their values with help of MID function.
I tried the following, but doesn't work.
=SUM(MID(MAP(H2#,LAMBDA(x,FILTER(F2:F4,(E2:E4=x)*(F2:F4>=L2)*(F2:F4<=L3))),LAMBDA(x,y,FILTER(B2:B12,(A2:A12=x)*ISNUMBER(MATCH(C2:C12,y,0))))),{1,5,9},2)+0)
I have the following data.
A2:C12
A | 01K 03L 01 | 1-Jan-24 |
B | 09K 01L 00 | 1-Jan-24 |
C | 12K 01L 00 | 1-Jan-24 |
D | 00K 00L 01 | 1-Jan-24 |
A | 09K 00L 09 | 1-Jan-24 |
A | 10K 00L 01 | 1-Jan-24 |
A | 00K 30L 01 | 1-Jan-24 |
B | 02K 02L 02 | 1-Jan-24 |
C | 10K 10L 10 | 1-Jan-24 |
D | 11K 11L 10 | 1-Jan-24 |
D | 10K 00L 10 | 1-Jan-24 |
E2:F4
A | 1-Jan-24 |
A | 2-Jan-24 |
B | 4-Jan-24 |
H2,
=SORT(UNIQUE(A2:A12))
L2: 1/1/2024
L3: 1/31/2024
L2:L3 is a month period.
In I2 I would like to get based on the following conditions.
1) If the dates in column F are in the month period (L2:L3) and take those dates for the values in H2:H5
2) Then, if these dates are in column C, then FILTER column B values for the values H2:H5
3) Then, SUM their values with help of MID function.
I tried the following, but doesn't work.
=SUM(MID(MAP(H2#,LAMBDA(x,FILTER(F2:F4,(E2:E4=x)*(F2:F4>=L2)*(F2:F4<=L3))),LAMBDA(x,y,FILTER(B2:B12,(A2:A12=x)*ISNUMBER(MATCH(C2:C12,y,0))))),{1,5,9},2)+0)