Range Naming

ATAHER

New Member
Joined
May 9, 2010
Messages
20
Hi guys

Actually i face aproplem in naming range
i want to name range by combination of numbers and word is it possible
because i have some complecated dropdown list for chart of accounts
with 5 dimentions (Cost Center)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
I think you need to provide more information before you get a detailed answer.
 
Upvote 0
for eample

Main ledger:

100-Assets
200-Liabilitite
300-Capital


The above will be the first drop down list , based on your selection for example if you select 100-Assets

the second drop down list will be only:

101-Cash
102-Bank
103-Account receivable
104-Fixed Assets

The third drop down list if you select for example 104-Fixed assets will be:

1041-Cars
1042-Land
1043-Building
1044-Tools

my problem is : that i cant name range by numbers for example:
104-Fixed Assets
even i am not able to name the range by words with space like :
Fixed Assets i should name it like FixedAssets

Can you help me please

My Regards
 
Upvote 0
When you create names from headings like that Excel puts and underscore before the initial number, and changes embedded spaces and hyphens to underscore. When you INDIRECTly reference the required names in your Data Validation you have to do the same thing to the previous level. So, for example, here is a sample layout:

Excel Workbook
ABCDEF
1TopLevel100-Assets200-Liabilitite300-Capital101-Cash104-Fixed Assets
2100-Assets101-Cash201-Item1301-Cap11011-Cash11041-Cars
3200-Liabilitite102-Bank202-Item2302-Cap21012-Cash21042-Land
4300-Capital103-Account receivable203-Item3303-Cap3*1043-Building
5*104-Fixed Assets204-Item4304-Cap4*1044-Tools
6**205-Item5305-Cap5**
7Defined names*206-Item6***
8_100_Assets=Sheet2!$B$2:$B$5****
9_101_Cash=Sheet2!$E$2:$E$3*Dropdown 1Dropdown 2Dropdown 3
10_104_Fixed_Assets=Sheet2!$F$2:$F$5*100-Assets104-Fixed Assets1043-Building
11_200_Liabilitite=Sheet2!$C$2:$C$7****
12_300_Capital=Sheet2!$D$2:$D$6****
13TopLevel=Sheet2!$A$2:$A$4****
Sheet2


And the data validation for cell E10 is List, with a definition of:

=INDIRECT("_"&SUBSTITUTE($D$10,"-","_"))

and for F10 it's:

=INDIRECT("_"&SUBSTITUTE(SUBSTITUTE($E$10,"-","_")," ","_"))

I hope you get the idea.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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