match and index newbie

avk_curr

New Member
Joined
Apr 19, 2018
Messages
3
Hi All,

Probably a simple question, but I need to use a match and index, but I've never used them before.

I need to look up the years and then look up the month and provide a value
For example
1 year and 5 months would produce 1.1556

YearsMonnth
013456
00.0722.1444.2167.2889.3611
1.8667.93891.001111.08341.15561.2278
2
3
4
5
6

<tbody>
</tbody>
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The first MATCH returns the row number. The second MATCH, the column number.
Domain


ABCDEFGHIJ
1YearsMonnth





Year1
2
013456
Month5
3000.0720.14440.2170.2890.361
Value1.1556
410.86670.9391.00111.0831.1561.228



<colgroup><col style="font-weight:bold; width:30px; "><col style="width:40px;"><col style="width:56px;"><col style="width:46px;"><col style="width:53px;"><col style="width:46px;"><col style="width:46px;"><col style="width:46px;"><col style="width:22px;"><col style="width:48px;"><col style="width:49px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
J3=INDEX($A$2:$G$4,MATCH(J1,A2:A4,0),MATCH(J2,A2:G2,0))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0
Hi!

You can try this too (with JoeMo's layout):

=VLOOKUP(J1,$A$3:$G$9,MATCH(J2,$A$2:$G$2,0),0)

or

=HLOOKUP(J2,$B$2:$G$9,MATCH(J1,$A$2:$A$9,0),0)

Markmzz
 
Last edited:
Upvote 0
Thank you, I think I was missing the MATCH(J1,A2:A4,0),MATCH(J2,A2:G2,0)) I was referencing the whole table A2:G4 each time,
Need to learn match and index better
 
Upvote 0

Forum statistics

Threads
1,215,762
Messages
6,126,740
Members
449,335
Latest member
Tanne

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