Use INDEX, MATCH without hard coded cell address

GScott

New Member
Joined
Oct 12, 2013
Messages
28
Office Version
  1. 365
Platform
  1. Windows
I would like to build a formula that is user proof.

I have tapped this out;

=INDEX(BusTable,MATCH(Q5,BusNo,0),2) and it works fine. This is in cell R5.

In an attempt to replace all direct cell references I have written this;

=INDEX(BusTable,MATCH((ADDRESS(ROW(),COLUMN()-1))),BusNo,0),2)

<tbody>
</tbody>

but is returning a #N/A because of the address part. I have the wrong syntax.

How do I fix this?

Thanks for any help
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I fail to see how ADDRESS makes this formula user proof, except that it will intimidate some users.

You have a paren too many, try:

=INDEX(BusTable,MATCH(ADDRESS(ROW(),COLUMN()-1),BusNo,0),2)
 
Upvote 0
I fail to see how ADDRESS makes this formula user proof, except that it will intimidate some users.

You have a paren too many, try:

=INDEX(BusTable,MATCH(ADDRESS(ROW(),COLUMN()-1),BusNo,0),2)

Well it means it can be pasted anywhere in the column and still return the correct entry.

Unfortunately this is not working - after removing the ). The error is #N/A.

The ADDRESS(ROW(),COLUMN()-1) is returning a text field or at least something written in parenthesis. Could this be the problem?
 
Upvote 0
Well it means it can be pasted anywhere in the column and still return the correct entry.

Unfortunately this is not working - after removing the ). The error is #N/A.

The ADDRESS(ROW(),COLUMN()-1) is returning a text field or at least something written in parenthesis. Could this be the problem?

What is the value of Q5?
 
Upvote 0
it is a number - 112

And the address part returns "$Q$5" including the rabbit ears
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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