Index Match to Variable Sheets based on cell value

jamesmev

Board Regular
Joined
Apr 9, 2015
Messages
233
Office Version
  1. 365
Platform
  1. Windows
Hello Excel Masters -
This one has me scratching my balding head.

I have a fun one and I don't know where to start.

on Sheet1 - A1 - - There is a number which is represented as a different sheet.

1 = Sheet3
2 = Sheet4
3 = Sheet5
4 = Sheet6.


If sheet 1 A1=1
then I need sheet2 to provide all the results that correspond to what is on
Sheet2 = A1 within Sheet 3.

Sheet2 A1 = Yellow

Sheet 3 =
A B
Yellow Tennis
Brown Dog
Gold Watch
Orange Flag
Yellow Sun
Yellow banana

The results then are displayed on
Sheet 2 =A2 xlDown
Tennis
Sun
Banana

Then loop across rows until empty rows.


I'm hoping for a miracle.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
@jamesmev Is this along the right lines?

Book2
AB
1YellowTennis
2BrownDog
3GoldWatch
4OrangeFlag
5YellowSun
6YellowBanana
7
My Sheet 3


Book2
AB
1GoldBullion
2BrownStuff
3YellowSubmarine
4OrangeState
5YellowOcre
6YellowJaundice
7Black Magic
8YellowPeril
9
Sheet4


Book2
A
11
Sheet1


Book2
A
1yellow
2Tennis
3Sun
4Banana
5
Sheet2
Cell Formulas
RangeFormula
A2:A4A2=LET(Sht,"'"&CHOOSE(Sheet1!A1,"My Sheet 3","Sheet4","Sheet5","Sheet6")&"'!",FILTER(INDIRECT(Sht&"B:B"),INDIRECT(Sht&"A:A")=A1,"No Match"))
Dynamic array formulas.


Book2
A
12
Sheet1


Book2
A
1yellow
2Submarine
3Ocre
4Jaundice
5Peril
6
Sheet2
Cell Formulas
RangeFormula
A2:A5A2=LET(Sht,"'"&CHOOSE(Sheet1!A1,"My Sheet 3","Sheet4","Sheet5","Sheet6")&"'!",FILTER(INDIRECT(Sht&"B:B"),INDIRECT(Sht&"A:A")=A1,"No Match"))
Dynamic array formulas.
 
Upvote 0
@jamesmev Is this along the right lines?

Book2
AB
1YellowTennis
2BrownDog
3GoldWatch
4OrangeFlag
5YellowSun
6YellowBanana
7
My Sheet 3


Book2
AB
1GoldBullion
2BrownStuff
3YellowSubmarine
4OrangeState
5YellowOcre
6YellowJaundice
7Black Magic
8YellowPeril
9
Sheet4


Book2
A
11
Sheet1


Book2
A
1yellow
2Tennis
3Sun
4Banana
5
Sheet2
Cell Formulas
RangeFormula
A2:A4A2=LET(Sht,"'"&CHOOSE(Sheet1!A1,"My Sheet 3","Sheet4","Sheet5","Sheet6")&"'!",FILTER(INDIRECT(Sht&"B:B"),INDIRECT(Sht&"A:A")=A1,"No Match"))
Dynamic array formulas.


Book2
A
12
Sheet1


Book2
A
1yellow
2Submarine
3Ocre
4Jaundice
5Peril
6
Sheet2
Cell Formulas
RangeFormula
A2:A5A2=LET(Sht,"'"&CHOOSE(Sheet1!A1,"My Sheet 3","Sheet4","Sheet5","Sheet6")&"'!",FILTER(INDIRECT(Sht&"B:B"),INDIRECT(Sht&"A:A")=A1,"No Match"))
Dynamic array formulas.
I am getting a value error.
Also needing this to be run in VBA
Thank you for the direction though
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,934
Members
449,094
Latest member
teemeren

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