Dynamic Range - INDEX + MATCH

OvernightCellebrity

New Member
Joined
Jan 16, 2024
Messages
16
Office Version
  1. 365
Platform
  1. Windows
I would like to dynamically change the red higlighted reference, based on the value in cell A1 of my sheet which is currently 45. The goal is to avoid having to amend the reference evrytime new data ro rows are added.

=IFERROR(INDEX('Allocations - Pipeline'!$D$60:$Z$1000,MATCH($C33,'Allocations - Pipeline'!$D$60:$D$1000,0),MATCH(D$2,'Allocations - Pipeline'!$D$67:$AV$67,0)),"No Allocations")
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
How about
Excel Formula:
=IFERROR(INDEX('Allocations - Pipeline'!$D$60:$Z$1000,MATCH($C33,'Allocations - Pipeline'!$D$60:$D$1000,0),MATCH(D$2,INDEX('Allocations - Pipeline'!$D:$AV,A1,0),0)),"No Allocations")
 
Upvote 0
thanks for the responses, this seems to have worked

=IFERROR(INDEX('Allocations - Pipeline'!$D$60:$Z$1000,MATCH($C34,'Allocations - Pipeline'!$D$60:$D$1000,0),MATCH(D$2,INDIRECT("'Allocations - Pipeline'!$D$"&$A$1&":$AV$"&$A$1),0)),"")
 
Upvote 0
Did you try what I suggested? It will be far more efficient than using indirect.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,109
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