Index Match Multiple Rows

hshone

New Member
Joined
Feb 23, 2015
Messages
12
Hi all,

I'm trying to get a formula that can return multiple data across various rows.

Id
Room
Value
123
Bedroom
Red
123
*******
Blue
512
*******
Blue
21
Bedroom
Green
21
*******
Red

<tbody>
</tbody>

If I have a list of of IDs i want to look up against it will return the values for each ID in a different col, in short get it to look something like this.

Id
Bedroom*******
123
Red
Blue
512
Blue
21
Green
Red

<tbody>
</tbody>

Any ideas, at the moment I'm using a mass of pivot tables, not ideal.

Thanks in advance.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,
try:

Excel 2013
ABCDEFGH
1IdRoomValueIdBedroom*******
2123BedroomRed123RedBlue
3123*******Blue512Blue
4512*******Blue21GreenRed
521BedroomGreen
621*******Red
hshone
Cell Formulas
RangeFormula
G2{=IFERROR(INDEX($C$2:$C$6,MATCH(1,($F2=$A$2:$A$6)*(G$1=$B$2:$B$6),0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi,

Many thanks for getting back to me. I can't seem to make it work, even when setting up as an array formula. Any reason why it might not be working, i'm using excel 2010 would that make a difference?
 
Upvote 0
No, it should work fine, please kindly describe what exactly is not working...
 
Upvote 0
Hi Sorry I had a space behind the letter making it not work.

The next problem I'm facing is that is it possible to extend this over a whole col. at the moment I'm having to enter the array function into each cell to make it work and I can't select all the cells and press Ctrl + shift+ enter.

Thanks once again for your great help.
 
Upvote 0
You need not enter CSE for each cell, rather in the first formula, adjust range to fit your model, enter as CSE, copy, choose all cells below (exclude first one) and paste. Repeat copy paste for adjacent columns.
 
Upvote 0

Forum statistics

Threads
1,214,568
Messages
6,120,272
Members
448,953
Latest member
Dutchie_1

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