Forum Discussion
Adam_Robinson_
Sep 30, 2022Copper Contributor
Creating a formula that checks a variable number of columns
Hi, have what I assume to be a relatively simple query. I'm trying to create a formula for a spreadsheet that I have which I need to add columns periodically to (one for each week) to log attenda...
HansVogelaar
Sep 30, 2022MVP
For Att. Total:
=COUNTIF($A2:INDEX(2:2,MATCH("Att. Total",$1:$1)-1),"Y")
For Att. Rate:
=D2/(MATCH("Att. Total",$1:$1)-1)
Excel will automatically adjust D2 when you insert more columns.
Adam_Robinson_
Oct 02, 2022Copper Contributor
HansVogelaar Thanks, worked perfectly.