Is there a way to remove the quotation marks when using a cell reference in a formula?

R0502 20 Reputation points
2025-07-30T13:07:57.6+00:00

Hi! I'm hitting a bit of a snag with a COUNTIF formula when it comes to setting the criteria. I want to use the cell reference 'Grade Inclusions'!Q1 in this instance, but that cell contains a TEXTJOIN function as I have a couple different grades I want to include as an OR list for the criteria. When I reference the cell, this is what it creates:

User's image

With the formula putting quote marks around the {}, it means the whole thing throws an error. I could type out the OR list myself, but there is likely to be more added to each list in future, so having it auto-update from the Grade Inclusions sheet would be fantastic.

Does anyone know how to get around this?

Microsoft 365 and Office | Excel | For business | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2025-07-30T13:20:14.45+00:00

    Excel won't recognize a text string of the form {...} as an array.

    It's hard to provide advice without knowing what you want to accomplish, but perhaps you can refer to the range of cells containing FY2 and LED FY2 instead.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.