I can't get this code to run, I keep getting an error that says "Compile error: Invalid qualifier". I'm wanting to count the number of blue cars on the "Cars" worksheet in column J from rows 45-70. Then have that number shown in cell C10 on the Summary worksheet. Can someone help me understand why this isn't running?
Worksheets("Summary").Range("C10") = Worksheets("Cars").WorksheetFunction.CountIf(Range("J45:J70"), "Blue")
Worksheets("Summary").Range("C10") = Worksheets("Cars").WorksheetFunction.CountIf(Range("J45:J70"), "Blue")