La formule de base est déjà bien complexe
=IFERROR(query(
{query({arrayformula(INT(A2:A))\B2:B}; "select Col1, count(Col2), 0 where Col1<>0 group by Col1 label 0 '', count(Col2) '' "); query({arrayformula(INT(E2:E))\G2:G}; "select Col1, 0, count(Col2) where Col1<>0 group by Col1 label 0 '', count(Col2) '' ")};
"select Col1, sum(Col2), sum(Col3) where Col1 is not null group by Col1 label sum(Col2) 'Claim', sum(Col3) 'Close' ");"")
- soit tu t'appuies dessus (il y a J:L un peu perdu au milieu de cette formule)
={""\"claims"\"close";
sequence(int(MAX({A2:A;E2:E}))-int(min({A2:A;E2:E}))+1;1;int(min({A2:A;E2:E}));1)\
arrayformula(iferror(vlookup(sequence(int(MAX({A2:A;E2:E}))-int(min({A2:A;E2:E}))+1;1;int(min({A2:A;E2:E}));1);J:L;{2\3};0);0))
}
avec
sequence(int(MAX({A2:A;E2:E}))-int(min({A2:A;E2:E}))+1;1;int(min({A2:A;E2:E}));1)
qui te donne toutes les dates entre les 2 extrêmes possibles
- soit tu concatènes les formules, ce qui devient une anthologie
={""\"claims"\"close";
sequence(int(MAX({A2:A;E2:E}))-int(min({A2:A;E2:E}))+1;1;int(min({A2:A;E2:E}));1)\
arrayformula(iferror(vlookup(sequence(int(MAX({A2:A;E2:E}))-int(min({A2:A;E2:E}))+1;1;int(min({A2:A;E2:E}));1);
IFERROR(query(
{query({arrayformula(INT(A2:A))\B2:B}; "select Col1, count(Col2), 0 where Col1<>0 group by Col1 label 0 '', count(Col2) '' "); query({arrayformula(INT(E2:E))\G2:G}; "select Col1, 0, count(Col2) where Col1<>0 group by Col1 label 0 '', count(Col2) '' ")};
"select Col1, sum(Col2), sum(Col3) where Col1 is not null group by Col1 label sum(Col2) 'Claim', sum(Col3) 'Close' ");"");{2\3};0);0))
}