I'm trying to insert the following equation into a sheet:
=COUNTIFS(email_logs_output.csv!$AB$2:$AB$26731, _
usersFullOutput.csv!S26, _
email_logs_output.csv!$R$2:$R$26731, _
"<>"&"", _
email_logs_output.csv!$H$2:$H$26731, _
"gift*")
I'm getting stuck at the criteria "<>"&""
. Here's what I have:
With Worksheets(users_sheet)
equation_range.FormulaR1C1 = "=COUNTIFS(" & emails_sheet & "!R2C" & email_col & ":R" & rows_email & "C" & email_col & " , RC[" & col_back & "], " _
& emails_sheet & "!R2C18:R" & rows_email & "C18, "" " <> " & "" "")"
End With
When I run it, all I get is TRUE
in every cell in equation_range
.
How do I get the equation to include "<>"&""
?