Share via

COUNTIF #VALUE! ERROR USING DEFINED RANGE NAME

Anonymous
2016-11-29T18:36:31+00:00

Formula is

=COUNTIF(Range1,"COMPLIANT")

Range1 is the defined name of about 15 non contiguous cells on the same page. I read the advice here and it states my range has too many characters.  It will not let me remove the words "Sheet1!" from the Range1 string.

The real formula will have about 80 non contiguous cells involved in the name range. 

I cannot use macros because the people this spreadsheet goes to are macro adverse. 

Can anyone help? Thanks.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2016-11-29T21:23:13+00:00

    Then use the second part of my post - a range of 15 cells with links to the non-contiguous cells.

    Or, if there is some other logic that you could use, you could try COUNTIFS, with extra criteria as needed, like

    =COUNTIFS(C:C,"COMPLIANT",B:B,"Overall", A:A,"East",F:F,"1st Quarter")

     For help with that, though, you would need to describe the structure and logic of your worksheet.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-11-29T20:06:28+00:00

    I cannot do that.  The other cells have the word "COMPLIANT" that are not related to this count, so reason non contiguous.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-11-29T19:02:37+00:00

    You may be able to just use a larger single range:

    =COUNTIF(A1:Z1000, "COMPLIANT")

    Or some other logic.

    If that fails, use a small range of 15 cells, where each cell is linked to one of your noncontiguous cells, and use those cells to perform the count:

    =COUNTIF(Z1:Z15, "COMPLIANT")

    Was this answer helpful?

    0 comments No comments