Blade Hunter
Well-known Member
- Joined
- Mar 13, 2008
- Messages
- 3,147
Hi Guys, I have a small issue, I need to look up some information, I could do it with code but I would love to do it with formulas if possible.
Here is my sample data:
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 165px"><COL style="WIDTH: 74px"><COL style="WIDTH: 82px"><COL style="WIDTH: 43px"><COL style="WIDTH: 42px"><COL style="WIDTH: 78px"><COL style="WIDTH: 62px"><COL style="WIDTH: 64px"><COL style="WIDTH: 51px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD><TD>I</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>Config</TD><TD>Tier / Class</TD><TD>Super Budget</TD><TD>Budget</TD><TD>Mid </TD><TD>Developing</TD><TD>Standard</TD><TD>Premium</TD><TD>Deluxe</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD>DA1</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">5.29</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">5.87</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">7.64</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">8.81</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">12.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">5.29</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.23</TD><TD style="TEXT-ALIGN: right">9.4</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">14.11</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">6.46</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">3.52</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">11.17</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">2.93</TD><TD style="TEXT-ALIGN: right">3.52</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD>DA2</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">11.17</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">12.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">15.28</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">19.99</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="TEXT-ALIGN: right">17.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">14.11</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">6.46</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">8.23</TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">12.93</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD>DA3</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">13.52</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">21.16</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">25.28</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">29.98</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">21.75</TD><TD style="TEXT-ALIGN: right">25.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">14.69</TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">21.16</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">16.46</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.58</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">11.92</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</TD><TD>DA4</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">14.11</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">18.22</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">24.1</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">28.22</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">34.1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">39.98</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">20.57</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">28.81</TD><TD style="TEXT-ALIGN: right">34.1</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">19.99</TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">27.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">20</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">18.81</TD><TD style="TEXT-ALIGN: right">21.75</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">21</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">13.52</TD><TD style="TEXT-ALIGN: right">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">22</TD><TD>DA5</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">22.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">29.98</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">35.27</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">42.33</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">49.97</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">23</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">19.4</TD><TD style="TEXT-ALIGN: right">25.28</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">29.98</TD><TD style="TEXT-ALIGN: right">36.45</TD><TD style="TEXT-ALIGN: right">42.33</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">24</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">21.16</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">29.98</TD><TD style="TEXT-ALIGN: right">35.27</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">25</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">19.4</TD><TD style="TEXT-ALIGN: right">23.51</TD><TD style="TEXT-ALIGN: right">27.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">26</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">19.99</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
Here are the rules:
I have the config (Example DA2)
I have a price (Example 15.28)
I need to find the Tier and the Class.
Some prices appear in multiple spots. In this case I need to follow these rules:
Stay Standard if possible
Otherwise check one column to the left and right of standard
If still not found check one more column out
and so on and so forth.
In my example I would expect Standard and Tier 1 to be returned
As another example I have DA1 and 4.11 as the price
I would expect Mid Tier 5 to be returned over Budget 4 or Super Budget 3
Hope that makes sense and hope this can be done with formulas, don't worry about posting VBA code as I can do that myself and I don't want to waste anyones time but if it can be done with formulas I would be super happy.
Edit: I can reconfigure the layout or repeat the config headings if needed, this data will be used for this purpose only so I can play around with the layout (initially it came from elsewhere which is the reason for the format)
Cheers
Dan
Here is my sample data:
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 165px"><COL style="WIDTH: 74px"><COL style="WIDTH: 82px"><COL style="WIDTH: 43px"><COL style="WIDTH: 42px"><COL style="WIDTH: 78px"><COL style="WIDTH: 62px"><COL style="WIDTH: 64px"><COL style="WIDTH: 51px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD><TD>I</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>Config</TD><TD>Tier / Class</TD><TD>Super Budget</TD><TD>Budget</TD><TD>Mid </TD><TD>Developing</TD><TD>Standard</TD><TD>Premium</TD><TD>Deluxe</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD>DA1</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">5.29</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">5.87</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">7.64</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">8.81</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">12.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">5.29</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.23</TD><TD style="TEXT-ALIGN: right">9.4</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">14.11</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">6.46</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">3.52</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">11.17</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">2.93</TD><TD style="TEXT-ALIGN: right">3.52</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">4.7</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD>DA2</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">11.17</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">12.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">15.28</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">19.99</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">8</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="TEXT-ALIGN: right">17.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">9</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">10</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">14.11</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">11</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">6.46</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #969696">NA</TD><TD style="TEXT-ALIGN: right">8.23</TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">12.93</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD>DA3</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">9.99</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">13.52</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">21.16</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">25.28</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">29.98</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">21.75</TD><TD style="TEXT-ALIGN: right">25.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">14.69</TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">21.16</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">16.46</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">16</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">4.11</TD><TD style="TEXT-ALIGN: right">5.58</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">8.81</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">11.92</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">17</TD><TD>DA4</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">14.11</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">18.22</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">24.1</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">28.22</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">34.1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">39.98</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">18</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">11.75</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">20.57</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">28.81</TD><TD style="TEXT-ALIGN: right">34.1</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">19</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">19.99</TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">27.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">20</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.93</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">18.81</TD><TD style="TEXT-ALIGN: right">21.75</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">21</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">5.87</TD><TD style="TEXT-ALIGN: right">7.64</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">11.17</TD><TD style="TEXT-ALIGN: right">13.52</TD><TD style="TEXT-ALIGN: right">15.28</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">22</TD><TD>DA5</TD><TD>Tier 1</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">17.63</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">22.34</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">29.98</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">35.27</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">42.33</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ffff00">49.97</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">23</TD><TD> </TD><TD>Tier 2</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">19.4</TD><TD style="TEXT-ALIGN: right">25.28</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">29.98</TD><TD style="TEXT-ALIGN: right">36.45</TD><TD style="TEXT-ALIGN: right">42.33</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">24</TD><TD> </TD><TD>Tier 3</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">15.28</TD><TD style="TEXT-ALIGN: right">21.16</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">24.1</TD><TD style="TEXT-ALIGN: right">29.98</TD><TD style="TEXT-ALIGN: right">35.27</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">25</TD><TD> </TD><TD>Tier 4</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="TEXT-ALIGN: right">16.46</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">19.4</TD><TD style="TEXT-ALIGN: right">23.51</TD><TD style="TEXT-ALIGN: right">27.63</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">26</TD><TD> </TD><TD>Tier 5</TD><TD style="TEXT-ALIGN: right">7.05</TD><TD style="TEXT-ALIGN: right">9.99</TD><TD style="TEXT-ALIGN: right">12.34</TD><TD style="BACKGROUND-COLOR: #969696"> </TD><TD style="TEXT-ALIGN: right">14.11</TD><TD style="TEXT-ALIGN: right">17.63</TD><TD style="TEXT-ALIGN: right">19.99</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
Here are the rules:
I have the config (Example DA2)
I have a price (Example 15.28)
I need to find the Tier and the Class.
Some prices appear in multiple spots. In this case I need to follow these rules:
Stay Standard if possible
Otherwise check one column to the left and right of standard
If still not found check one more column out
and so on and so forth.
In my example I would expect Standard and Tier 1 to be returned
As another example I have DA1 and 4.11 as the price
I would expect Mid Tier 5 to be returned over Budget 4 or Super Budget 3
Hope that makes sense and hope this can be done with formulas, don't worry about posting VBA code as I can do that myself and I don't want to waste anyones time but if it can be done with formulas I would be super happy.
Edit: I can reconfigure the layout or repeat the config headings if needed, this data will be used for this purpose only so I can play around with the layout (initially it came from elsewhere which is the reason for the format)
Cheers
Dan