Dynamic named range

jcooooper

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

If I wanted to create a name ranged of the cells in column A, starting when column B says "Equity", and ending when the work "Fixed Income" starts, how would I go about it? (i.e named range should = A5:A15)

I've tried something like this but no bueno

=OFFSET(MATCH("EQUITIES",B:B,0),0,-1,COUNTIF(B:B,"EQUITIES"),1)

Code:
[TABLE="width: 201"]
<tbody>[TR]
[TD]GB92737[/TD]
[TD]Alternatives[/TD]
[/TR]
[TR]
[TD]G73607[/TD]
[TD]Alternatives[/TD]
[/TR]
[TR]
[TD]GB96017[/TD]
[TD]Alternatives[/TD]
[/TR]
[TR]
[TD]LP6121[/TD]
[TD]Alternatives[/TD]
[/TR]
[TR]
[TD]GB908[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]FT_U00PX[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]GB9[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]GB906[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]6D20[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]GB921004[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]GB3001[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]2845001[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]MS_D[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]SG001[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]SNP500PX[/TD]
[TD]Equities[/TD]
[/TR]
[TR]
[TD]GB9213[/TD]
[TD]Fixed Income[/TD]
[/TR]
[TR]
[TD]G006[/TD]
[TD]Fixed Income[/TD]
[/TR]
[TR]
[TD]GB92772022[/TD]
[TD]Fixed Income[/TD]
[/TR]
[TR]
[TD]GB92772024[/TD]
[TD]Fixed Income[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
How about
=OFFSET(Sheet2!A1,MATCH("EQUITIES",Sheet2!B:B,0)-1,,COUNTIF(Sheet2!B:B,"EQUITIES"),1)
change sheet name to suit
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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