Using Match function with dynamic reference (llookup array)

rachelli

New Member
Joined
Jul 14, 2013
Messages
6
I want to use a dynamic look up array with match and have the below example:

=MATCH(B$4,CONCATENATE("'",A5,"'!$E:$E"),0)

The above formula result is #VALUE!
Cell A5 has the value Sheet1, however, after testing this will change to a date e.g. 01-Jul-14
What am I doing wrong?
I am going to use it as part of a to build up a data table from daily sheets e.g. INDIRECT(CONCATENATE("'",A5,"'!",CONCATENATE("E",MATCH(B$4,Sheet1!$E:$E,0)))) and the indirect will be part of an OFFSET(Sheet1!$E:$E,MATCH(B$4,Sheet1!$E:$E,0)-1,-1,1,1). Or would there be a better way to go about it? INDIRECT only seems to work with a cell, rather than a column e.g. E:E, is that correct?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
posting sample data and the required output would help..

OK, let's use a soccer theme

Sheet 1
ForCountryAgainst
1Australia5
2Brazil6
3Peru7
4USA8

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

Sheet 2
ForCountryAgainst
10Australia6
9Brazil5
8Peru4
7USA3

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

Data sheet - looking at these sheets but currently the Match is not dynamic: OFFSET(INDIRECT(CONCATENATE("'",A5,"'!",CONCATENATE("E",MATCH(B$4,Sheet1!$E:$E,0)))),0,-1)
ForAgainst
AustraliaBrazilPeruUSAAustraliaBrazilPeruUSA
Sheet112345678
Sheet2109876543

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
This is what I ended up with - thanks so much! (my Sunday sheet is a weekly summary with the prefix 'WE ').

=IF($D367="Sunday",OFFSET(INDIRECT("'WE "&TEXT($A367,"d-mmm-yy")&"'!$a$1"),MATCH(G$1,INDIRECT("'"&TEXT($A367,"d-mmm-yy")&"'!$E:$E"),0)-1,1),OFFSET(INDIRECT("'"&TEXT($A367,"d-mmm-yy")&"'!$a$1"),MATCH(G$1,INDIRECT("'"&TEXT($A367,"d-mmm-yy")&"'!$E:$E"),0)-1,1))

It is a shame that Match doesn't seem to allow you to select more than one column as I need to update $E:$E with different columns depending on where the data is....
 
Upvote 0

Forum statistics

Threads
1,217,383
Messages
6,136,272
Members
450,001
Latest member
KWeekley08

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