Named Range Name in Cell Formula

HighAndWilder

Well-known Member
Joined
Nov 4, 2006
Messages
646
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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
"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,223,703
Messages
6,173,977
Members
452,540
Latest member
haasro02

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