Function needed to return specific columns based on input

TorusTwin

New Member
Joined
Oct 29, 2017
Messages
2
Hi all,

Sorry for the poor title. I'm having trouble describing this and as a result I haven't had much luck with google searches for what I suspect will be a straight forward function.

If you have a look at the link below you will see my sample data. I want to be able to change the orange cell on the right and have the yellow, green, blue, and red cells automatically populate from the corresponding row.

Is anyone able to help me out with this?

https://imgur.com/a/wSlMQ

Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the MrExcel board!

You will get more help if you can provide your sample data in a form that helpers don't need to actually type it out themselves. See my signature block below for more help about that.

Try a formula like this in cell R5 and copy it down to the 3 cells below.

=INDEX(F$6:I$100,MATCH(R$4,A$6:A$100,0),ROWS(R$5:R5))
 
Upvote 0
Hi sorry about the image post. I'll make sure to provide the properly formatted data next time around.

I was having trouble with the column section of the Index function. I ended up just manually adjusting it as there were only 4 needed.

=INDEX(F$26:I$335,MATCH(R$2,A$26:A$335,0),1)
=INDEX(F$26:I$335,MATCH(R$2,A$26:A$335,0),2)
=INDEX(F$26:I$335,MATCH(R$2,A$26:A$335,0),3)
=INDEX(F$26:I$335,MATCH(R$2,A$26:A$335,0),4)

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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