Lifesaver
New Member
- Joined
- Nov 9, 2004
- Messages
- 8
I am attempting to create a lookup function that searches for a value in a table array that varies according to what is found in another cell.
See in the simplified example below, lookup_value is C17 and, depending of the code typed at C18, the table array would start from the cell that contains this value (F3:H15 in this example) and it would return the equivalent amount of hours in the last column (1185.71) as the result. Obviously, my list would remain sorted to allow the 4th argument (range_lookup) to be "True".
Any help that you could provide would be greatly appreciated. Thank you!
See in the simplified example below, lookup_value is C17 and, depending of the code typed at C18, the table array would start from the cell that contains this value (F3:H15 in this example) and it would return the equivalent amount of hours in the last column (1185.71) as the result. Obviously, my list would remain sorted to allow the 4th argument (range_lookup) to be "True".
Hourly Employees Salary Rates Chart (for MBONDU).xls | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ||||||||||
2 | FTAB | FTBB | FTCB | PTAB | PTBB | PTCB | Hours | |||
3 | 10.50 | 9.50 | 11.50 | 10.50 | 9.50 | 11.50 | 0 | |||
4 | 10.50 | 9.50 | 11.50 | 11.55 | 10.65 | 12.90 | 385.71 | |||
5 | 11.55 | 10.65 | 12.90 | 11.55 | 10.65 | 12.90 | 514.29 | |||
6 | 11.55 | 10.65 | 12.90 | 12.47 | 11.17 | 13.70 | 1185.71 | |||
7 | 12.47 | 11.17 | 13.70 | 12.47 | 11.17 | 13.70 | 1314.29 | |||
8 | 12.47 | 11.17 | 13.70 | 13.31 | 11.91 | 14.60 | 1985.71 | |||
9 | 13.31 | 11.91 | 14.60 | 13.31 | 11.91 | 14.60 | 2114.29 | |||
10 | 13.31 | 11.91 | 14.60 | 14.11 | 12.31 | 15.50 | 2785.71 | |||
11 | 14.11 | 12.31 | 15.50 | 14.11 | 12.31 | 15.50 | 2914.29 | |||
12 | 14.11 | 12.31 | 15.50 | 15.00 | 13.38 | 16.40 | 3585.71 | |||
13 | 15.00 | 13.38 | 16.40 | 15.00 | 13.38 | 16.40 | 3714.29 | |||
14 | 15.00 | 13.38 | 16.40 | 16.00 | 14.25 | 17.40 | 4385.71 | |||
15 | 16.00 | 14.25 | 17.40 | 16.00 | 14.25 | 17.40 | 4514.29 | |||
16 | ||||||||||
17 | Rate: | 11.17 | ||||||||
18 | Code: | PTBB | ||||||||
19 | Hours: | ? | ||||||||
Sheet2 |
Any help that you could provide would be greatly appreciated. Thank you!