Good morning,
Will someone please explain why my formula isn't including the name of the sheet?
The output is -
I'm trying to achieve -
Thank you
Will someone please explain why my formula isn't including the name of the sheet?
VBA Code:
Dim CRange As Variant
Set CRange = Sheets("KPI Data - MY22 ONLY").Range("C5:C" & Sheets("KPI Data - MY22 ONLY").Range("A" & Rows.Count).End(xlUp).Row)
Range("G97") = "=countifs(" & CRange.Address & ",C97," & CRange.Offset(0, 19).Address & ",""Yes"")"
The output is -
=COUNTIFS($C$5:$C$3407,C97,$V$5:$V$3407,"Yes")
I'm trying to achieve -
=COUNTIFS('KPI Data - MY22 ONLY'!$C$5:$C$3407,C97,'KPI Data - MY22 ONLY'!$V$5:$V$3407,"Yes")
Thank you