Count rows referencing named range in cell

jcooooper

Board Regular
Joined
Mar 24, 2018
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to return the text strings in a named range.

When I use the named_range directly the formula, it works fine:

=TRANSPOSE(OFFSET(named_range,,,ROWS(named_range),1))

When I use a cell reference, it doesn't seem to work.

A1 = named_range

=TRANSPOSE(OFFSET(A1,,,ROWS(A1),1))

Any ideas?

Many thanks
 
In that case you are better of going with Joe's idea of using Indirect.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I tried however it looks like INDIRECT doesn't work when a named range is dynamic (which all 50 are).

Thanks anyway for the suggestion, much appreciated!
 
Upvote 0
I tried however it looks like INDIRECT doesn't work when a named range is dynamic (which all 50 are).
Please explain what you mean by this.
Do you mean that the value in cell A1 is changing, and the formula does not update automatically?
If so, that is because INDIRECT is not a volatile function.

If that is the case, how is the value in cell A1 (named range) being changed?
 
Upvote 0
it looks like INDIRECT doesn't work when a named range is dynamic
Your quite right it doesn't. The only other way I know (short of using VBA) is the switch function, but 50 named ranges in that would be very long.
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

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