Hey everyone - I'm trying to create a SUMIFS formula that changes the 'SUM RANGE' column each month automatically based on today's date. The following formula uses the current month to return the column I want, then converts the column number to it's text equivalent (So a date in April returns "D:D")
=SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(ADDRESS(1,MONTH(TODAY())+4))),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(ADDRESS(1,MONTH(TODAY())+4))),4),"1","")
I'm trying to plug it into a SUMIFS formula by combining the column reference with the tab name, and inserting it into the SUM RANGE section of the formula, like this:
=SUMIFS("AccountData!"&=SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(ADDRESS(1,MONTH(TODAY())+4))),4),"1","")&":"&SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(ADDRESS(1,MONTH(TODAY())+4))),4),"1",""),AccountData!B:B,Account!A5)
I cant figure out how to attach the tab name to the column reference, and then properly pass it as the SUM RANGE parameter. Any ideas?
Thanks!
Bookmarks