I am trying to calculate the count of a string of data based upon the last 7 days and the last 30 days using the current date.
I do not want to manually update the date.
Column A = Dates
Column B = Data
I can make the count work by using the manual date:
=COUNTIFS(Data2!$A:$A,"<11/5/2019",Data2!$A:$A,">10/27/2019",Data2!$B:$B,"Hard Rock")
This brings back the correct counts.
But, If I use the TODAY() function (or the NOW() function), or direct the criteria to a cell that holds the TODAY() function, it does not work.
=COUNTIFS(Data2!$A:$A,"<=TODAY()+1",Data2!$A:$A,">=TODAY()-8",Data2!$B:$B,"Hard Rock")
=COUNTIFS(Data2!$A:$A,"<=E31",Data2!$A:$A,">=F31",Data2!$B:$B,"Hard Rock")
My theory is that the criteria section cannot hold formulas?
Can anyone help with my issue?
Thanks
~Kim