How to use formula result in one cell in formula range in a different cell?

EdNerd

Active Member
Joined
May 19, 2011
Messages
456
In U1, I have
=MATCH(U2,$A$1:$A100,0)
which returns a correct value of 2.

In U11, I have
=MATCH(TRUE,INDEX($B3:$R3<>"",0),0)

I'd like to change the $B3:$R3 to use the value in U1.
Something like:
"$B"&U1+1&":$R"&U1+1

But so far all I'm getting is #VALUE errors!
Anyone drop-kick me in the right direction, please??
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi Ed

Indirect() translates a string into a reference.

Try:

=MATCH(TRUE,INDEX(INDIRECT("$B"&(U1+1)&":$R"&(U1+1))<>"",0),0)
 
Upvote 0
P. S.

I used Indirect() just to go with your logic, that is correct.

Indirect() is however volatile, which means is not efficient and will hurt your workbook performance if you use many.

In this case, I would use instead:

=MATCH(TRUE,INDEX(INDEX(B:B,U1+1):INDEX(R:R,U1+1)<>"",0),0)
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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