I have 2 formulas that appear to be behaving differently every alternate week, not so much the formula but the part at the end.
=IF(AQ$2="","",IF(SelectedPeriod=$D22,(COUNTIFS('sheet1'!$C$2:$C$1000,"="&BR$2,'sheet1'!$H$2:$H$1000,"<>"&"")),""))
"<>"&"" being what is giving me issues, when I put the formula together this was working and I had a count where cells were blank in 'sheet1'!$H$2:$H$1000 (among the other conditions).
Cut to the week following when I found that the results were counting blank cells. Scratching my head thinking that this was fixed the week before I found that replacing "<>"&"" with ">""" worked, blank cells were no longer counted.
Cut to the week after this and again I found that the results were once again counting blank cells so I changed back to "<>"&"" to fix the issue.
Cut to the week after this...well I think you can guess. I've been bouncing the end of that formula back and forward from week to week, the data comes from the same location each week which is an export from the same source each week and although the data changes week in week out I can't imagine why my formula seems to count blanks.
I say this changes every week, it is every week that I run the reports and then put them through this and it is at that point that I identify the change. At the same time, SelectedPeriod which is a date selected from validation is manually increased, ($D22 in that formula being in a column of dates which also feeds the data validation).
Any pointers?
Thanks
=IF(AQ$2="","",IF(SelectedPeriod=$D22,(COUNTIFS('sheet1'!$C$2:$C$1000,"="&BR$2,'sheet1'!$H$2:$H$1000,"<>"&"")),""))
"<>"&"" being what is giving me issues, when I put the formula together this was working and I had a count where cells were blank in 'sheet1'!$H$2:$H$1000 (among the other conditions).
Cut to the week following when I found that the results were counting blank cells. Scratching my head thinking that this was fixed the week before I found that replacing "<>"&"" with ">""" worked, blank cells were no longer counted.
Cut to the week after this and again I found that the results were once again counting blank cells so I changed back to "<>"&"" to fix the issue.
Cut to the week after this...well I think you can guess. I've been bouncing the end of that formula back and forward from week to week, the data comes from the same location each week which is an export from the same source each week and although the data changes week in week out I can't imagine why my formula seems to count blanks.
I say this changes every week, it is every week that I run the reports and then put them through this and it is at that point that I identify the change. At the same time, SelectedPeriod which is a date selected from validation is manually increased, ($D22 in that formula being in a column of dates which also feeds the data validation).
Any pointers?
Thanks