Lookup table syntax

abberyfarm

Well-known Member
Joined
Aug 14, 2011
Messages
733
Hello,

If I had a value of 08:00:00 in cell A1 and value of 3 in cell C1, what would be the correct syntax to look up a value in a table?

Here is the table. It is in range A1:I26 in sheet2.

Sheet2

*ABCDEFGHI
1*Distance (miles)
2Start Time12345678
300:00:0068101413171619
401:00:0065101113381619
502:00:008581113381619
603:00:008581113381619
704:00:0020581113381619
805:00:001581113381619
906:00:003581113381619
1007:00:008581118151619
1108:00:0065111823272429
1209:00:0095121318212423
1310:00:0079101315161719
1411:00:0079121316212219
1512:00:0079111316201922
1613:00:0069101415171722
1714:00:00711101315182022
1815:00:00710121417201926
1916:00:00810111318151922
2017:00:0079131317192425
2118:00:00710111418192324
2219:00:0079111416181922
2320:00:0068101215151819
2421:00:0026647111211
2522:00:00614121316161820
2623:00:0010321700

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

I want it to return the value 11 in cell D1.

Thanks for the help
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

It is returning the wrong number. It is returning 9.5 instead of 11.1.

I'm using =INDEX(A4:I28,MATCH(A3,A4:A28,0),MATCH(C1,A4:I4,0))

Any suggestions?

Thanks


Sheet1

*ABCDEFGHI
108:00:00*39.5*****
2*********
3*Distance (miles)
4Start Time12345678
500:00:006.37.59.514.212.516.516.319.2
601:00:006.15.010.010.812.537.516.319.2
702:00:007.55.07.510.812.537.516.319.2
803:00:007.55.07.510.812.537.516.319.2
904:00:0020.05.07.510.812.537.516.319.2
1005:00:001.35.07.510.812.537.516.319.2
1106:00:002.55.07.510.812.537.516.319.2
1207:00:008.15.07.511.417.515.216.319.2
1308:00:006.55.011.118.323.026.823.529.0
1409:00:009.45.011.613.517.621.324.322.5
1510:00:007.59.210.413.115.115.617.419.2
1611:00:006.58.611.812.816.420.821.919.3
1712:00:007.49.111.413.315.920.219.522.4
1813:00:006.59.110.413.515.216.616.721.7
1914:00:006.910.510.212.915.218.020.422.3
2015:00:007.49.612.114.016.819.719.225.5
2116:00:007.69.510.812.717.714.918.921.8
2217:00:007.09.212.713.316.819.424.424.7
2318:00:007.49.511.214.317.919.222.624.2
2419:00:006.58.711.213.615.717.519.022.2
2520:00:006.08.59.812.215.015.018.319.1
2621:00:002.35.86.23.97.111.511.711.0
2722:00:005.814.312.012.915.515.517.520.0
2823:00:000.90.32.52.31.37.00.00.0

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:107px;"><col style="width:131px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Surely it should be =INDEX(A4:I28,MATCH(A1,A4:A28,0),MATCH(C1,A4:I4,0))

Excel Workbook
ABCDEFGHI
108:00:00Distance (miles)311
2Start Time12345678
300:00:0068101413171619
401:00:0065101113381619
502:00:008581113381619
603:00:008581113381619
704:00:0020581113381619
805:00:001581113381619
906:00:003581113381619
1007:00:008581118151619
1108:00:0065111823272429
1209:00:0095121318212423
1310:00:0079101315161719
1411:00:0079121316212219
1512:00:0079111316201922
1613:00:0069101415171722
1714:00:00711101315182022
1815:00:00710121417201926
1916:00:00810111318151922
2017:00:0079131317192425
2118:00:00710111418192324
2219:00:0079111416181922
2320:00:0068101215151819
2421:00:0026647111211
2522:00:00614121316161820
2623:00:0010321700
Sheet5
 
Upvote 0

Forum statistics

Threads
1,203,052
Messages
6,053,233
Members
444,648
Latest member
sinkuan85

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