ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Mental block (https://www.excelbanter.com/new-users-excel/78950-mental-block.html)

Jack Sheet

Mental block
 
How do I define an array constant as a name?
I tried to insert a name as follows
Name: 2006!AgeRange
Refers to: ={<16,17-18,19-49,49}
and it advised that the syntax was incorrect but was otherwise unhelpful.
I tried substituting ";" for "," as the element separators but that didn't
help either.
Thanks

--
Return email address is not as DEEP as it appears



Ron Coderre

Mental block
 
Try this:

={"<16","17-18","19-49","49"}

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Jack Sheet" wrote:

How do I define an array constant as a name?
I tried to insert a name as follows
Name: 2006!AgeRange
Refers to: ={<16,17-18,19-49,49}
and it advised that the syntax was incorrect but was otherwise unhelpful.
I tried substituting ";" for "," as the element separators but that didn't
help either.
Thanks

--
Return email address is not as DEEP as it appears




Peo Sjoblom

Mental block
 
These values are text and not numbers so you need to use either

={"<16","17-18","19-49","49"}

or

={"<16";"17-18";"19-49";"49"}

Regards,

Peo Sjoblom

"Jack Sheet" wrote in message
...
How do I define an array constant as a name?
I tried to insert a name as follows
Name: 2006!AgeRange
Refers to: ={<16,17-18,19-49,49}
and it advised that the syntax was incorrect but was otherwise unhelpful.
I tried substituting ";" for "," as the element separators but that didn't
help either.
Thanks

--
Return email address is not as DEEP as it appears




Jack Sheet

Mental block
 
Thanks Peo, And Ron.
Your solotion worked, but for some reason it did not help me in the end. I
wanted to refer to the named array constant as a source for "pick from list"
in data validation, but it seems not to like it unless you dedicate cells to
the range.

"Peo Sjoblom" wrote in message
...
These values are text and not numbers so you need to use either

={"<16","17-18","19-49","49"}

or

={"<16";"17-18";"19-49";"49"}

Regards,

Peo Sjoblom

"Jack Sheet" wrote in message
...
How do I define an array constant as a name?
I tried to insert a name as follows
Name: 2006!AgeRange
Refers to: ={<16,17-18,19-49,49}
and it advised that the syntax was incorrect but was otherwise unhelpful.
I tried substituting ";" for "," as the element separators but that
didn't help either.
Thanks

--
Return email address is not as DEEP as it appears







All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com