Please Help!

pkb68

New Member
Joined
Jul 13, 2008
Messages
7
Please help! I am working in table 1 to fill-in “Index A” with data from “Index B” of my “Lookup Table” by finding which range (Max:Min) covers the “Value”.
As an example, B2=Lookup Table: C2=31 as 17950 is within A2 and B2 of lookup table.
Table 1:
<table class="MsoNormalTable" style="width: 144.85pt; margin-left: 4.55pt; border-collapse: collapse;" width="193" border="0" cellpadding="0" cellspacing="0"> <tbody><tr style="height: 19.75pt;"> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 32.35pt; height: 19.75pt;" valign="top" width="43">
<o:p> </o:p>
</td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 19.75pt;" width="78">
A<o:p></o:p>
</td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 19.75pt;" width="72">
B<o:p></o:p>
</td> </tr> <tr style="height: 19.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 19.75pt;" valign="top" width="43">
1<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 19.75pt;" width="78">
Value<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 19.75pt;" width="72">
Index A<o:p></o:p>
</td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
2<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
17950<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap">
31<o:p></o:p>
</td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
3<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
21930<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap"></td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
4<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
21980<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap"></td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
5<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
10915<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap"></td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
6<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
10845<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap"></td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 32.35pt; height: 15.75pt;" valign="top" width="43">
7<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 58.5pt; height: 15.75pt;" valign="bottom" width="78" nowrap="nowrap">
10755<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 0.75in; height: 15.75pt;" valign="bottom" width="72" nowrap="nowrap"></td> </tr> </tbody></table> <o:p> </o:p>
Lookup Table:
<table class="MsoNormalTable" style="width: 225.85pt; margin-left: 4.55pt; border-collapse: collapse;" width="301" border="0" cellpadding="0" cellspacing="0"> <tbody><tr style="height: 15.75pt;"> <td style="border-style: solid solid none; border-color: windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt medium; padding: 0in 5.4pt; width: 22pt; height: 15.75pt;" valign="top" width="29">
<o:p> </o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 63pt; height: 15.75pt;" valign="bottom" width="84" nowrap="nowrap">
A<o:p></o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 92.15pt; height: 15.75pt;" valign="bottom" width="123" nowrap="nowrap">
B<o:p></o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 48.7pt; height: 15.75pt;" valign="bottom" width="65" nowrap="nowrap">
C<o:p></o:p>
</td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: solid solid none; border-color: windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt medium; padding: 0in 5.4pt; width: 22pt; height: 15.75pt;" valign="top" width="29">
1<o:p></o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 63pt; height: 15.75pt;" valign="bottom" width="84" nowrap="nowrap">
Max<o:p></o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 92.15pt; height: 15.75pt;" valign="bottom" width="123" nowrap="nowrap">
Min<o:p></o:p>
</td> <td style="border-style: solid solid none none; border-color: windowtext windowtext -moz-use-text-color -moz-use-text-color; border-width: 1pt 1pt medium medium; padding: 0in 5.4pt; width: 48.7pt; height: 15.75pt;" valign="bottom" width="65" nowrap="nowrap">
Index B<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
2<o:p></o:p>
</td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
17702.5<o:p></o:p>
</td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
18000.5<o:p></o:p>
</td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
31<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
3<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
17839.5<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
18137.5<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
32<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
4<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
21220.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
21520.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
81<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
5<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
21497.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
21822.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
82<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
6<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
21798.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
22142.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
83<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
7<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
22097.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
22397.5<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
84<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
8<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
10696.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
10873.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
21<o:p></o:p>
</td> </tr> <tr style="height: 15pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15pt;" valign="top" width="29">
9<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15pt;" valign="bottom" width="84" nowrap="nowrap">
10856.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15pt;" valign="bottom" width="123" nowrap="nowrap">
11053.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15pt;" valign="bottom" width="65" nowrap="nowrap">
22<o:p></o:p>
</td> </tr> <tr style="height: 15.75pt;"> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 22pt; height: 15.75pt;" valign="top" width="29">
10<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 63pt; height: 15.75pt;" valign="bottom" width="84" nowrap="nowrap">
11036.25<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 92.15pt; height: 15.75pt;" valign="bottom" width="123" nowrap="nowrap">
11193.75<o:p></o:p>
</td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.7pt; height: 15.75pt;" valign="bottom" width="65" nowrap="nowrap">
23<o:p></o:p>
</td> </tr> </tbody></table> <o:p> </o:p>
What should be the formula for column B at table 1?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi pkb68:

Welcome to MrExcel Board!

Unless I am missing something here shouldn't the value you are seeking 32

since 17950 lies between the values 17839.5 and 18137.5

Please clarify.
 
Upvote 0
Hi Yogi,

The value can be either 31 or 32 because there are overlappings of ranges in the Lookup table. 17950 is covered by both 31 and 32. Therefore, it is alright to have the value either 31 or 32. Thanks,

pkb68
 
Upvote 0
I have almost the same question as previous poster; are the values in the second table supposed to be mutually exclusive, as they now overlap, which sort of defeats the lookup operation. Some values in the first apply to multiple rows.

How many rows do you foresee in each table- is it a fixed number as the example suggests, or can it expand.

Awaiting clarifications.
 
Upvote 0
So what you want is, to be able to display ALL index numbers that may apply to the particular lookup value, correct? Would there ever be more than 2 for any given value?
 
Upvote 0
Hi Yogi,

The value can be either 31 or 32 because there are overlappings of ranges in the Lookup table. 17950 is covered by both 31 and 32. Therefore, it is alright to have the value either 31 or 32. Thanks,

pkb68

Hi pkb68:

In that case ... one way:

<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
ABC
1Value Index A
21795031
321930
421980
510915
610845
710755
8
9Lookup Table:
10MaxMinIndex B
1117702.518000.531
1217839.518137.532
1321220.7521520.7581
1421497.2521822.2582
1521798.7522142.7583
1622097.2522397.584
1710696.2510873.7521
1810856.2511053.7522
1911036.2511193.7523
Sheet9


</body></html>
 
Upvote 0
I really want to see only one value which ever match first, although there will be more than one match. Thanks,

pkb68
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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