I have a set of columns showing me how much a customer spent on a monthly basis. Each month, a new column is added for the current month. I also have a date selector in order to look at historical data.
I've made a sample sheet to make it easier to understand my problem.
I would need a formula with the following requirements:
Please let me know if more information is needed.
Added formula to your sheet:
=INDEX(IF(LEN(A4:A),IF(INT(B1)=IFNA(VLOOKUP(A4:A,{Data!A2:A,BYROW(Data!B2:Z,LAMBDA(bx,IF(COUNTA(bx)=0,,IF(INDEX(bx,,1)<>"",,+FILTER(Data!B$1:Z$1,bx<>"")))))},2,)),"Yes","No"),))