I have a Google Sheet of renewal opportunities and the date that each opportunity move into a new renewal stage, which can be found here. The end goal is to see how many opportunities were in each stage during any given "snapshot date".
I created an INDEX MATCH formula that looks at columns of stage change dates and will return the stage based on the snapshot date given. The problem is that I have to have an additional column for each snapshot date that I want to look at.
=IFERROR(INDEX(SUBSTITUTE($A$1:$G$1," (AUTOMATIC)",""),MATCH(I$1,ARRAYFORMULA(IF($A2:$G2="","",TO_DATE(INT($A2:$G2)))),1)),"Untouched")
Is there a way to evaluate the columns with the INDEX MATCH formula and then the resulting rows, all in one array formula? I want the output to look like the table in Columns O:T.
try:
UPDATE: