Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Need to use Countif with Indirect to reference a different sheet

Writer Andrew Mclaughlin

I have a formula like this =COUNTIF('Program Schedule Loader TCs'!N2:N9994,"PASS") Now i want to have a formula that always references to column 'N' on the mentioned sheet even after inserting new columns.

1 Answer

You were nearly there - you just need to wrap the range with INDIRECT() (remember to add quotes to the range as well).

=COUNTIF(INDIRECT("'Program Schedule Loader TCs'!N2:N9994"),"PASS")

This will ALWAYS reference column N, even if by inserting new columns there is no data in column N.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy