Named Range Name in Cell Formula

HighAndWilder

Active Member
Joined
Nov 4, 2006
Messages
392
Office Version
  1. 365
Platform
  1. Windows
Hi

Whilst I have a get around solution to this problem I wondered how others may implement the problem.

I want to refer to one of two named ranges in a formula using the RANK function in a cell. A value in another cell in the same row is used to determine which
named range is used.

How can I use an expression that returns the name of the named range?

I have tried using INDIRECT but it does not work.

For example :

=IF($B9=P$7,RANK($I9,reference_to_named_range),0)

Thanks
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
"I want to refer to one of two named ranges in a formula using the RANK...A value in another cell in the same row is used to determine which named range is used.

You have two named ranges, lets call them Rang1 and Rang2

Isn't this just

RANK($I9,IF($B9=P$7,Rang1,Rang2),0)
 
Upvote 0
"I want to refer to one of two named ranges in a formula using the RANK...A value in another cell in the same row is used to determine which named range is used.

You have two named ranges, lets call them Rang1 and Rang2

Isn't this just

RANK($I9,IF($B9=P$7,Rang1,Rang2),0)

This was how I was doing it but the named range needs to be hard coded into the formula.

I wanted to find a way in which the name of the named range can be arrived at by evaluating an expression.

I needed to convert a reference assembled as text into a proper reference.

I can use the INDIRECT function but this does not seem to work if the named range is a dynamic one using OFFSET or if the named range refers to non-contigous cells.

It was the latter I wanted to do.

Do these observations run true in your experience?
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,636
Members
449,043
Latest member
farhansadik

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