double lookup

cucaracha

New Member
Joined
Nov 6, 2009
Messages
27
Dear all,

I am trying to do a double lookup on the following table:
The range of the table is B2:I50

HORA DOM SEG TER QUA QUI SEX SAB
0:00 V V FV FV FV FV FV
0:30 V V V V V V V
1:00 V V V V V V V
1:30 V V V V V V V
2:00 V V V V V V V
2:30 V V V V V V V
3:00 V V V V V V V
3:30 V V V V V V V
4:00 V V V V V V V
4:30 V V V V V V V
5:00 V V V V V V V
5:30 V V V V V V V
6:00 V V V V V V V
6:30 V V V V V V V
7:00 V V V V V V V
7:30 V FV FV FV FV FV V
8:00 V FV FV FV FV FV V
8:30 V FV FV FV FV FV V
9:00 V FV FV FV FV FV V
9:30 V FV FV FV FV FV V
10:00 V FV FV FV FV FV FV
10:30 V FV FV FV FV FV FV
11:00 V FV FV FV FV FV FV
11:30 V FV FV FV FV FV FV
12:00 V FV FV FV FV FV FV
12:30 V FV FV FV FV FV FV
13:00 V FV FV FV FV FV FV
13:30 V FV FV FV FV FV V
14:00 V FV FV FV FV FV V
14:30 V FV FV FV FV FV V
15:00 V FV FV FV FV FV V
15:30 V FV FV FV FV FV V
16:00 V FV FV FV FV FV V
16:30 V FV FV FV FV FV V
17:00 V FV FV FV FV FV V
17:30 V FV FV FV FV FV V
18:00 V FV FV FV FV FV V
18:30 V FV FV FV FV FV V
19:00 V FV FV FV FV FV FV
19:30 V FV FV FV FV FV FV
20:00 V FV FV FV FV FV FV
20:30 V FV FV FV FV FV FV
21:00 V FV FV FV FV FV FV
21:30 V FV FV FV FV FV FV
22:00 V FV FV FV FV FV FV
22:30 V FV FV FV FV FV V
23:00 V FV FV FV FV FV V
23:30 V FV FV FV FV FV V

and on cell L2 I put the hour and on L3 I put the day. On L4 should give the result. for instance on 04:30 of SAB the result should be V.
I am writing the following array formula but is giving me an error:
=OFFSET(B2:I50;MATCH(L2;OFFSET(B2:I50;0;0;ROWS(B2:I50);1);0)-1;MATCH(L3;OFFSET(B2:I50;0;0;1;COLUMNS(B2:I50));0)-1)

Can someone give me some help?
I am using EXCEL 2003.
Best regards,
Cucaracha
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Assuming that B1:I1 houses the headers (i.e., HORA, DOM, etc.), try...

=INDEX($C$2:$I$50,MATCH(L2,$B$2:$B$50,0),MATCH(L3,$C$1:$I$1,0))

where L2 houses a time value like: 04:30 and L3 a day like SAB.
 
Upvote 0
It worked for me

Excel Workbook
BCDEFGHIJKL
2HORADOMSEGTERQUAQUISEXSAB07:30
300:00VVFVFVFVFVFVTER
400:30VVVVVVVFV
501:00VVVVVVV
601:30VVVVVVV
702:00VVVVVVV
802:30VVVVVVV
903:00VVVVVVV
1003:30VVVVVVV
1104:00VVVVVVV
1204:30VVVVVVV
1305:00VVVVVVV
1405:30VVVVVVV
1506:00VVVVVVV
1606:30VVVVVVV
1707:00VVVVVVV
1807:30VFVFVFVFVFVV
1908:00VFVFVFVFVFVV
2008:30VFVFVFVFVFVV
2109:00VFVFVFVFVFVV
Sheet2
 
Upvote 0
Thank you both,

But is still giving the same error.
I don't know if it related with the fact that the values in HORA are time values?

Regards,
Cucaracha
 
Upvote 0
I am back again.

The formula works but when I need to find a value related with time 0:00 it gives me the error again.

Any idea?

Best regards,
Cucaracha
 
Upvote 0
Dear VoG,

I don't know why but for me doesn't work.
The only way is changing the match type from 0 to 1 and with this the 0:00 gives error.

Regards,
cucaracha
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

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