Multiple ROWS and COLUMS

Trebby

Board Regular
Joined
Aug 7, 2014
Messages
64
Hi All,

Please can you assist.

I am trying to pull a number of rows and columns together based on criteria within a INDEX,MATCH formula.


A
B
C
D
E
Code
Name
Jan-17
Feb-17
Mar-17
0
John
10
20
30
1
John
20
30
40
2
John
30
40
50
0
Ben
5
10
15
1
Ben
10
15
20
2
Ben
15
20
25

<tbody>
</tbody>

Results

G
H
I
J
Jan-17
Feb-17
0
John
10
#REF !
0
Ben
5
#REF !

<tbody>
</tbody>


For January I am using the following formula

=INDEX($C$3:$E$8,MATCH($H3,$B$3:$B$8,0),MATCH($G3,$A$3:$A$8,0),MATCH($I$2,$C$2:$E$2,0))

When dragging this over for Feb I get #REF !

=INDEX($C$3:$E$8,MATCH($H3,$B$3:$B$8,0),MATCH($G3,$A$3:$A$8,0),MATCH($J$2,$C$2:$E$2,0))

Can you advise what I am doing wrong or maybe suggest an alternative way of doing this?

Thanks for your help in advance.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Array formula, so confirm with ctrl+shift+enter:
=INDEX($C$2:$E$7,MATCH($G2&$H2,$A$2:$A$7&$B$2:$B$7,0),MATCH(I$1,$C$1:$E$1,0))
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,422
Members
449,450
Latest member
gunars

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