Naming a range of cells

DebraJess

New Member
Joined
Mar 12, 2006
Messages
7
I'm trying to name a range of cells to be used in creating a drop-down list. Each cell has a number ranging from 0 to 10. Each time I try to name the cells, excel eliminates the cell with the 0 in it. I need to be able to use the 0 in my list. Is there a way to make this happen? I will need to add these cells together in a different column.

Thank you! :cry:
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I'm not sure what you mean, I put the numbers 0 through 10 in G1:G11, and named this range allowed.

And then in Data Validation, under Allow, choose List
Under Source put =allowed

alternatively, you could just put under source:
0,1,2,3,4,5,6,7,8,9,10
and then you wouldn't need a range named or not.
 
Upvote 0
How are you naming the cells? Using code or manually?
If code, please post it.

Are you naming each cell or a range of cells?

Under Tools | Options
On the "View" tab, is Zero values checked or unchecked?
 
Upvote 0
Oh, dear. I think I just answered my own question. I seems that once you name a range of cells, that's it. Your stuck with that name and range. The only way to edit it is to delete the column and start from the beginning. What I didn't mention in my question (silly me :oops: ) was that I was trying to edit my range of cells to include the 0 digit. I didn't know you couldn't do that.

Everything is okey dokey now. Thank you for helping! :wink:
 
Upvote 0
You can "over-write" named ranges using code. Like:
Code:
ActiveWorkbook.Names.Add Name:="MyRange", RefersTo:=Range("A1").CurrentRegion
Manually you have to delete the original range first.
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,161
Members
448,948
Latest member
spamiki

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