Using Range Names in Formulae

chris-evans

Board Regular
Joined
Feb 19, 2002
Messages
73
Hi all.

I have a drop down box of range names from which I want the user to select a particular name.

The chosen name gets put in a cell (say A1).

I then have an index formula that looks to A1 eg:

=index(A1,,2)

The only problem is that the formula fails as Excel does not recognise the contents of A1 as a range name. It stores it as a text string.

Is there any easy way I can get around this and make Excel notice this text string as a range name? I know how to do this using VBA but I would rather do it in a formula if possible.

Any help would be greatly appreciated!!

Thanks

Chris
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
On 2002-02-25 06:52, chris-evans wrote:
Hi all.

I have a drop down box of range names from which I want the user to select a particular name.

The chosen name gets put in a cell (say A1).

I then have an index formula that looks to A1 eg:

=index(A1,,2)

The only problem is that the formula fails as Excel does not recognise the contents of A1 as a range name. It stores it as a text string.

Is there any easy way I can get around this and make Excel notice this text string as a range name? I know how to do this using VBA but I would rather do it in a formula if possible.

Any help would be greatly appreciated!!

Thanks

Chris

Try:

INDIRECT(A1) as part in your formulas.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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