Match two row headings, plus a column heading, and return intersection

Cowzilla

New Member
Joined
Jun 16, 2011
Messages
11
Hi There,

I have two worksheets..one is a bunch of data, and the other is a summary sheet. I need to pull data into the summary sheet by having it match two different row headings, a column heading, and then return the value of the corresponding intersection. I can't modify the data or headings in anyway, only the summary sheet formulas.

If someone can tell me how to upload examples or screenshots, I gladly will.

Thanks!!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi There,

I have two worksheets..one is a bunch of data, and the other is a summary sheet. I need to pull data into the summary sheet by having it match two different row headings, a column heading, and then return the value of the corresponding intersection. I can't modify the data or headings in anyway, only the summary sheet formulas.

If someone can tell me how to upload examples or screenshots, I gladly will.

Thanks!!
See if this is what you had in mind.

Book1
ABCDEF
1__ABCD
2ZZ8833545
3XY68889144
4SD9531970
5HJ54376269
Sheet1

Book1
HIJK
1Lookup ValuesResult
2XYB88
Sheet1

This array formula** entered in K2:

=INDEX(C2:F5,MATCH(1,IF(A2:A5=H2,IF(B2:B5=I2,1)),0),MATCH(J2,C1:F1,0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
The formula doesn't seem to be pulling the data from the correct line unless I index it just to the line where the data is. It's also giving me a REF error when I try to copy it to other cells. Here is my exact formula:

{=INDEX('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$90:$AM$90,MATCH(1,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$3:$AM$3=$B5,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$4:$AM$4=$A5,1)),0),MATCH("OVERALL TOTAL",'[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$A$90,0))}

The bold areas are where I would like it to search a larger area, rather than me having to absolute reference just the cells with the data I'm looking for.
 
Upvote 0
The formula doesn't seem to be pulling the data from the correct line unless I index it just to the line where the data is. It's also giving me a REF error when I try to copy it to other cells. Here is my exact formula:

{=INDEX('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$90:$AM$90,MATCH(1,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$3:$AM$3=$B5,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$4:$AM$4=$A5,1)),0),MATCH("OVERALL TOTAL",'[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$A$90,0))}

The bold areas are where I would like it to search a larger area, rather than me having to absolute reference just the cells with the data I'm looking for.
Ok...

You're only indexing a single row of data: $I$90:$AM$90

It looks like you're searching 2 rows (not columns) for multiple lookup values so that portion needs to be moved here:

=INDEX('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$90:$AM$90,MATCH("OVERALL TOTAL",'[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$A$90,0),MATCH(1,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$3:$AM$3=$B5,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$4:$AM$4=$A5,1)),0))

So, you need to complete the black bolded range and then expand the red bolded range.
 
Upvote 0
Ok...

You're only indexing a single row of data: $I$90:$AM$90

It looks like you're searching 2 rows (not columns) for multiple lookup values so that portion needs to be moved here:

=INDEX('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$90:$AM$90,MATCH("OVERALL TOTAL",'[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$A$90,0),MATCH(1,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$3:$AM$3=$B5,IF('[JOB SCHEDULE PLOVER 2011.xls]ChipSeal 2011'!$I$4:$AM$4=$A5,1)),0))

So, you need to complete the black bolded range and then expand the red bolded range.
Book1
ABCDE
1_ZXSH
2_ZYDJ
3A8833545
4B68889144
5C9531970
6D54376269
Sheet1

Book1
HIJK
1Lookup ValuesResult
2XYB88
Sheet1

This array formula** entered in K2:

=INDEX(B3:E6,MATCH(J2,A3:A6,0),MATCH(1,IF(B1:E1=H2,IF(B2:E2=I2,1)),0))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,612
Messages
6,179,890
Members
452,948
Latest member
Dupuhini

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