how to define list of items as named range

Tkeller

Board Regular
Joined
Jul 23, 2003
Messages
143
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
What I want to do is probably relatively simple.

I want to use a drop down list that contains several listed items (e.g. pants, shirts, socks, shoes), but I do not want to have to list these on my spreadsheet. What I would like to do is define these items in a named "formula" (e.g. with the name "clothes", where clothes will have all of these elements). Then, I would like to use this named range in my drop down box, so that the user can select which clothes item he/she wants. The goal here is to not have to physically list the items on the spreadsheet, instead having them contained in a named range formula.

Thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
What I want to do is probably relatively simple.

I want to use a drop down list that contains several listed items (e.g. pants, shirts, socks, shoes), but I do not want to have to list these on my spreadsheet. What I would like to do is define these items in a named "formula" (e.g. with the name "clothes", where clothes will have all of these elements). Then, I would like to use this named range in my drop down box, so that the user can select which clothes item he/she wants. The goal here is to not have to physically list the items on the spreadsheet, instead having them contained in a named range formula.

Thanks!
As long as there aren't too many items you can enter the items separated by a comma within the validation user form. For example:

Item1,Item2,Item3,Item4

The user form refedit (the little box where you'd enter the items) will only accept up to 255 characters.
 
Upvote 0
Thanks, but I don't want to use data validation. I want to use a drop down box (from the forms menu) and then have these items selectable in the drop down menu. I don't want to have to type the items on my spreadsheet in order to refer to them - I want to instead refer to a named range and then be able to have that named range include this list of items.

Thanks.
 
Upvote 0
Thanks, but I don't want to use data validation. I want to use a drop down box (from the forms menu) and then have these items selectable in the drop down menu. I don't want to have to type the items on my spreadsheet in order to refer to them - I want to instead refer to a named range and then be able to have that named range include this list of items.

Thanks.
So, you want to use a forms combo box?

I don't think you can do it the way you want. You need to use a range of cells to hold the list. You might be able to do it with VBA code but that seems like over-complicating something that's normally relatively simple.
 
Upvote 0
Thanks. Just to be clear,there is no way to define a named range as an array of items? I would always have to reference cells on a worksheet?
 
Upvote 0
Yes you can define a name Clothes like this:

={"pants","shirts","socks","shoes"}

and the formula:

=INDEX(Clothes,2)

will return shirts. But you can't use the name as the source of a Forms ComboBox.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top