yichuansancun
Board Regular
- Joined
- Feb 7, 2011
- Messages
- 123
Hello -
I have the following tables:
<table border="0" cellpadding="0" cellspacing="0" width="120"><col style="width: 45pt;" span="2" width="60"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl68" style="height: 15pt; width: 45pt;" align="center" height="20" width="60">low</td> <td class="xl68" style="border-left: medium none; width: 45pt;" align="center" width="60">high</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="height: 15.75pt; border-top: medium none;" align="right" height="21">40,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">40,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">41,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">41,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">42,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">42,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">43,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">43,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">44,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">44,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">45,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">45,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">46,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">46,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">47,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">47,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">48,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">48,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">49,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">49,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">50,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">50,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">51,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">51,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">52,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">52,999</td> </tr> </tbody></table>
and I need to look up a number to see what Low-High range it falls within, then use match to return the row number.
For example
A1 = 41,500
Then match A1 should return row number of 2
What will be the actual formula?
Thanks!
I have the following tables:
<table border="0" cellpadding="0" cellspacing="0" width="120"><col style="width: 45pt;" span="2" width="60"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl68" style="height: 15pt; width: 45pt;" align="center" height="20" width="60">low</td> <td class="xl68" style="border-left: medium none; width: 45pt;" align="center" width="60">high</td> </tr> <tr style="height: 15.75pt;" height="21"> <td class="xl69" style="height: 15.75pt; border-top: medium none;" align="right" height="21">40,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">40,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">41,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">41,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">42,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">42,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">43,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">43,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">44,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">44,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">45,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">45,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">46,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">46,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">47,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">47,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">48,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">48,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">49,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">49,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">50,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">50,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">51,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">51,999</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl69" style="height: 15pt; border-top: medium none;" align="right" height="20">52,000</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">52,999</td> </tr> </tbody></table>
and I need to look up a number to see what Low-High range it falls within, then use match to return the row number.
For example
A1 = 41,500
Then match A1 should return row number of 2
What will be the actual formula?
Thanks!