Searching a Table with a horizontal and vertical value

MarcoM12

New Member
Joined
May 8, 2017
Messages
3
Dear all,

Currently im familiarizing myself more and more with excel.
However I've run into a rather annoying problem.

I have made a table which is rougly 60 vertical cells and 70 horizontal cells.
Out of a prior calculation 2 keys are found. One horizontal value , one vertical value.
Now I'd like to automatically find the intersection between these 2 keys.

So lets say I have 24 as input for my vertical search and 56 for my horizontal search. Now i'd like the intersection of the vertical row and horizontal column.

How to explain this further...
1. First the value for a vertical and horizontal needs to be found in a designated row/column
2. Then an intersection between these has to be found..

I have tried with an index match search.. But thus far it doesn't work.

As im running out of ideas, i'd figured I should ask some truly knowledgeable people,
I Hope someone can help me out..

Example..

Beta
Alpha212223242526272829
200,770,770,760,760,750,750,740,740,73
210,770,760,760,750,750,740,740,730,73
220,760,760,760,750,750,740,740,730,72
230,760,760,750,750,750,740,730,720,72
240,760,750,750,750,740,740,730,720,72
250,750,750,750,740,740,730,730,720,71
260,750,750,740,740,740,730,720,720,71
270,750,740,740,740,730,730,720,710,71

<tbody>
</tbody>

The alpha i found in earlier sum would by example be 24,55 and the beta 26,2. Now I want to find the intersection in the table (0,73 )..

Hope anyone can help,

Sincerely,
Marco
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I think this should be possible with an index/match formula. Suggest you read this:

https://www.deskbright.com/excel/index-match-multiple-criteria/

So it should be something along the lines of:

Code:
{=INDEX(B3:J10, MATCH(<alpha result=""><alpha result="">%alpha result%&%beta result%<beta result=""><beta result="">, A3:A8&B2:J2, 0))}

It appears this should be an array formula, so ensure you enter it with CTRL+SHIFT+ENTER.

Note: I did not test any of this and have no idea if it will work, but this is where I would start.</beta></beta></alpha></alpha>
 
Last edited:
Upvote 0
Well, I'm on hour 11 of my 12 hour overnight shift and got bored and decided to try this out. I had "25" and "26" in L2 and L3, respectively. The data is exactly as you have in your OP. The formula I used was:

Code:
{=INDEX(B3:J10,MATCH(L2&L3,A3:A10&B2:J2,0))}

And I'm getting a #N/A error, so it appears that this is probably going to be a little more complicated than I originally thought. It might be worth your time to google about "returning the intersection of a matrix of data" or similar things.
 
Upvote 0
Firstly, thank you for your reply.

currently now im trying like this:
=INDEX('Tabel 1 -Cbi'!C6:BK82;VERGELIJKEN(AFRONDEN.BENEDEN.WISK(Informatieblad!C205);VERGELIJKEN(AFRONDEN.BENEDEN.WISK(B205;0;0;)'Tabel 1 -Cbi'!C5:BK5;'Tabel 1 -Cbi'!C5:BK5);0)
However Ive used to many arguments..

In english (since im using a dutch version) :
=Index('Table1 Cbi';C6:BK82);Match(Floor(informatieblad!c205);Match(floor(b205;0);'table1cbi'C5:BK5';o)

To many arguments thou. So need to refine it more..
 
Upvote 0
@MarcoM12:

Try this:

=SUMPRODUCT(($A$3:$A$10=ROUND(L2,0))*($B$2:$J$2=ROUND(L3,0))*$B$3:$J$10)
 
Upvote 0
@MarcoM12:

Try this:

=SUMPRODUCT(($A$3:$A$10=ROUND(L2,0))*($B$2:$J$2=ROUND(L3,0))*$B$3:$J$10)

I'll give that one a try in a bit. I've now made 'names' for each row and column. In this way i can find the intersections. However it still needs typing. It isnt automatic.

So im hoping your suggestion will work,

Sincerely,
MarcoM
 
Upvote 0
Looks like...

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
1​
Alpha/Beta
21
22
23
24
25
26
27
28
29
2​
20
0.77
0.77
0.76
0.76
0.75
0.75
0.74
0.74
0.73
3​
21
0.77
0.76
0.76
0.75
0.75
0.74
0.74
0.73
0.73
4​
22
0.76
0.76
0.76
0.75
0.75
0.74
0.74
0.73
0.72
5​
23
0.76
0.76
0.75
0.75
0.75
0.74
0.73
0.72
0.72
6​
24
0.76
0.75
0.75
0.75
0.74
0.74
0.73
0.72
0.72
7​
25
0.75
0.75
0.75
0.74
0.74
0.73
0.73
0.72
0.71
8​
26
0.75
0.75
0.74
0.74
0.74
0.73
0.72
0.72
0.71
9​
27
0.75
0.74
0.74
0.74
0.73
0.73
0.72
0.71
0.71
10​
11​
12​
25
13​
26
14​
0.73
15​

<tbody>
</tbody>


A1:J9 >> TABLE

In A14 enter:

=VLOOKUP(A12,TABLE,MATCH(A13,INDEX(TABLE,1,0),1),1)

or...

=VLOOKUP(ROUND(A12,0),TABLE,MATCH(ROUND(A13,0),INDEX(TABLE,1,0),1),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

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