Vlookup or index (multiple selection) ??

bperc

New Member
Joined
Sep 19, 2013
Messages
1
section12345
selectionR1R2R3R1R2R3 R1R2R3 R1R2R3 R1R2R3
10,020,030,030,050,060,070,080,10,120,120,140,170,160,190,23
20,040,050,060,090,110,140,160,190,230,230,290,350,310,390,47
30,060,080,090,140,170,20,240,290,350,350,430,520,470,580,7
40,220,280,330,320,40,480,470,590,710,660,830,990,941,171,4
50,240,30,360,370,460,550,550,680,820,780,971,161,091,361,64
60,260,330,390,410,510,620,630,780,940,891,111,341,241,551,86
70,280,350,420,460,570,680,710,881,061,011,261,521,41,742,09
80,30,380,450,50,630,750,780,981,171,131,411,691,551,942,33
90,320,40,480,550,680,820,861,081,291,241,551,861,712,132,56
100,340,430,510,590,740,890,941,171,41,361,692,031,862,332,79

<tbody>
</tbody>

On Sheet2 I have above table. On Sheet1 I would like to have (probably) a dropdown menu to specify one value. So you would choose Section, than Selection (witch is inside each Section) and for last value from left bar (from 1 to 10).

Does any one have an idea how to solve this problem.

Thanks, Peter
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You might need to adjust the overall range here, but...

Code:
=INDEX(A1:P12,MATCH([Left Bar Reference Cell],A1:A12,0),MATCH([Section Reference Cell]&[Selection Reference Cell],A1:P1&A2:P2,0))
... is working for me.

This is an array formula so you need to enter it with CTRL+SHIFT+ENTER.

Hope this helps,

Chris.

EDIT: I just realised that the merged cells would cause some problems. I would personally solve this by have a section number in every column and hiding the unnecessary ones using the conditional formatting rule...

Code:
=B1=A1
... with the custom format ";;;", applied from B1 to wherever your table ends.
 
Last edited:
Upvote 0
Maybe this:

Layout

section
1
2
3
4
5
Sheet2
Section
Selection
ColA
Result
Sheet1
selection
R1
R2
R3
R1
R2
R3
R1
R2
R3
R1
R2
R3
R1
R2
R3
3
R2
10
1,17
1
0,02
0,03
0,03
0,05
0,06
0,07
0,08
0,1
0,12
0,12
0,14
0,17
0,16
0,19
0,23
1
R3
4
0,33
2
0,04
0,05
0,06
0,09
0,11
0,14
0,16
0,19
0,23
0,23
0,29
0,35
0,31
0,39
0,47
2
R1
6
0,41
3
0,06
0,08
0,09
0,14
0,17
0,2
0,24
0,29
0,35
0,35
0,43
0,52
0,47
0,58
0,7
4
0,22
0,28
0,33
0,32
0,4
0,48
0,47
0,59
0,71
0,66
0,83
0,99
0,94
1,17
1,4
5
0,24
0,3
0,36
0,37
0,46
0,55
0,55
0,68
0,82
0,78
0,97
1,16
1,09
1,36
1,64
6
0,26
0,33
0,39
0,41
0,51
0,62
0,63
0,78
0,94
0,89
1,11
1,34
1,24
1,55
1,86
7
0,28
0,35
0,42
0,46
0,57
0,68
0,71
0,88
1,06
1,01
1,26
1,52
1,4
1,74
2,09
8
0,3
0,38
0,45
0,5
0,63
0,75
0,78
0,98
1,17
1,13
1,41
1,69
1,55
1,94
2,33
9
0,32
0,4
0,48
0,55
0,68
0,82
0,86
1,08
1,29
1,24
1,55
1,86
1,71
2,13
2,56
10
0,34
0,43
0,51
0,59
0,74
0,89
0,94
1,17
1,4
1,36
1,69
2,03
1,86
2,33
2,79
********
******
******
******
******
******
******
******
******
******
******
******
******
******
******
******
******
**
*******
*********
******
******
******

<tbody>
</tbody>


Array formula - use Ctrl+Shift+Enter and not only Enter to enter the formula

Code:
=IFERROR(INDEX(Sheet2!$B$3:$P$12,$C2,
SMALL(IF(Sheet2!$B$1:$P$1=$A2,COLUMN(Sheet2!$B$3:$P$3)+MATCH($B2,Sheet2!$B$2:$D$2,0)-COLUMN(Sheet2!$B$2)),1)),"")

Or

=IFERROR(INDEX(Sheet2!$B$3:$P$12,$C2,
MATCH($A2,Sheet2!$B$1:$P$1,0)+MATCH($B2,Sheet2!$B$2:$D$2,0)-1),"")


Markmzz
 
Last edited:
Upvote 0
Code:
=IFERROR(INDEX(Sheet2!$B$3:$P$12,$C2,
SMALL(IF(Sheet2!$B$1:$P$1=$A2,COLUMN(Sheet2!$B$3:$P$3)+MATCH($B2,Sheet2!$B$2:$D$2,0)-COLUMN(Sheet2!$B$2)),1)),"")

Or

=IFERROR(INDEX(Sheet2!$B$3:$P$12,$C2,
MATCH($A2,Sheet2!$B$1:$P$1,0)+MATCH($B2,Sheet2!$B$2:$D$2,0)-1),"")

To enter the second formula use only Enter.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,918
Members
449,195
Latest member
Stevenciu

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