Range Name Constants

  • Thread starter Thread starter veryeavy
  • Start date Start date
V

veryeavy

Hi All,

I know you can define a range name to refer to a constant rather than a
range, but was hoping I could put more than one constant in there.

I have tried =OR("X","Y","Z") and ={"X","Y","Z"} and while the syntax is
fine it doesn't evaluate correctly in the formula i.e. I was hoping to see if
my text string matched one of the 3 items.

Any help would be much appreciated.
 
{"X","Y","Z"} is what works but you have to use it correctly, such as

=SUMPRODUCT(COUNTIF(A:A,array_of_constants))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top