PDA

View Full Version : VLOOKUP with Multiple Results



Admin
05-26-2011, 10:10 PM
Hi All,

VLOOKUP is one of the Excel's most useful as well as commonly used functions.

Here are some examples.

Data table:

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:216px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >A</td><td >B</td><td >C</td><td >D</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Order ID</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Product</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Unit Price</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Quantity</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td style="font-family:Arial; font-size:10pt; ">Queso Cabrales</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">14.00</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">12</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td style="font-family:Arial; font-size:10pt; ">Singaporean Hokkien Fried Mee</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">9.80</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td style="font-family:Arial; font-size:10pt; ">Mozzarella di Giovanni</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">34.80</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">5</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10249</td><td style="font-family:Arial; font-size:10pt; ">Tofu</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">18.60</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">9</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10249</td><td style="font-family:Arial; font-size:10pt; ">Manjimup Dried Apples</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">42.40</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">40</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10250</td><td style="font-family:Arial; font-size:10pt; ">Jack&#39;s New England Clam Chowder</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">7.70</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10250</td><td style="font-family:Arial; font-size:10pt; ">Manjimup Dried Apples</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">42.40</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">35</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10250</td><td style="font-family:Arial; font-size:10pt; ">Louisiana Fiery Hot Pepper Sauce</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">16.80</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">15</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10251</td><td style="font-family:Arial; font-size:10pt; ">Gustaf&#39;s Kn&auml;ckebr&ouml;d</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">16.80</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">6</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10251</td><td style="font-family:Arial; font-size:10pt; ">Ravioli Angelo</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">15.60</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">15</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10251</td><td style="font-family:Arial; font-size:10pt; ">Louisiana Fiery Hot Pepper Sauce</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">16.80</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">20</td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web &#62;&#62; </span><a style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4 </a>


a simple VLOOKUP


<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:216px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >A</td><td >B</td><td >C</td><td >D</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >18</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Order ID</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Product</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Unit Price</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Quantity</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >19</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td style="font-family:Arial; font-size:10pt; ">Queso Cabrales</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">14</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">12</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B19</td><td >=VLOOKUP&#40;$A19,$A$2&#58;$D$12,2,0&#41;</td></tr><tr><td >C19</td><td >=VLOOKUP&#40;$A19,$A$2&#58;$D$12,3,0&#41;</td></tr><tr><td >D19</td><td >=VLOOKUP&#40;$A19,$A$2&#58;$D$12,4,0&#41;</td></tr></table></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web &#62;&#62; </span><a style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4 </a>

continued on next post..

Admin
05-26-2011, 10:15 PM
Extract multiple results with the help of Helper column

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >E</td><td >F</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="text-align:right; ">0</td><td style="text-align:right; ">3</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">1</td><td >*</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">2</td><td >*</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">3</td><td >*</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >*</td><td >*</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >F1</td><td >=MAX&#40;E1&#58;E12&#41;</td></tr><tr><td >E2</td><td >=IF&#40;A2=$A$25,LOOKUP<span style=' color:008000; '>&#40;9.9999E+307,$E$1&#58;E1&#41;</span>+1,&#34;&#34;&#41;</td></tr><tr><td >E3</td><td >=IF&#40;A3=$A$25,LOOKUP<span style=' color:008000; '>&#40;9.9999E+307,$E$1&#58;E2&#41;</span>+1,&#34;&#34;&#41;</td></tr><tr><td >E4</td><td >=IF&#40;A4=$A$25,LOOKUP<span style=' color:008000; '>&#40;9.9999E+307,$E$1&#58;E3&#41;</span>+1,&#34;&#34;&#41;</td></tr><tr><td >E5</td><td >=IF&#40;A5=$A$25,LOOKUP<span style=' color:008000; '>&#40;9.9999E+307,$E$1&#58;E4&#41;</span>+1,&#34;&#34;&#41;</td></tr></table></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web &#62;&#62; </span><a style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4 </a>



<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:216px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >A</td><td >B</td><td >C</td><td >D</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >24</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Order ID</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Product</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Unit Price</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Quantity</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >25</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td >Queso Cabrales</td><td style="text-align:right; ">14</td><td style="text-align:right; ">12</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >26</td><td >*</td><td >Singaporean Hokkien Fried Mee</td><td style="text-align:right; ">9.8</td><td style="text-align:right; ">10</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >27</td><td >*</td><td >Mozzarella di Giovanni</td><td style="text-align:right; ">34.8</td><td style="text-align:right; ">5</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >28</td><td >*</td><td >*</td><td >*</td><td >*</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B25</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;B$25&#58;B25&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;B$25&#58;B25&#41;</span>,$E$2&#58;$E$12,B$2&#58;B$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >C25</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;C$25&#58;C25&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;C$25&#58;C25&#41;</span>,$E$2&#58;$E$12,C$2&#58;C$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >D25</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;D$25&#58;D25&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;D$25&#58;D25&#41;</span>,$E$2&#58;$E$12,D$2&#58;D$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >B26</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;B$25&#58;B26&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;B$25&#58;B26&#41;</span>,$E$2&#58;$E$12,B$2&#58;B$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >C26</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;C$25&#58;C26&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;C$25&#58;C26&#41;</span>,$E$2&#58;$E$12,C$2&#58;C$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >D26</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;D$25&#58;D26&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;D$25&#58;D26&#41;</span>,$E$2&#58;$E$12,D$2&#58;D$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >B27</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;B$25&#58;B27&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;B$25&#58;B27&#41;</span>,$E$2&#58;$E$12,B$2&#58;B$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >C27</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;C$25&#58;C27&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;C$25&#58;C27&#41;</span>,$E$2&#58;$E$12,C$2&#58;C$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >D27</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;D$25&#58;D27&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;D$25&#58;D27&#41;</span>,$E$2&#58;$E$12,D$2&#58;D$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >B28</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;B$25&#58;B28&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;B$25&#58;B28&#41;</span>,$E$2&#58;$E$12,B$2&#58;B$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >C28</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;C$25&#58;C28&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;C$25&#58;C28&#41;</span>,$E$2&#58;$E$12,C$2&#58;C$12&#41;</span>,&#34;&#34;&#41;</td></tr><tr><td >D28</td><td >=IF&#40;ROWS<span style=' color:008000; '>&#40;D$25&#58;D28&#41;</span>&#60;=$F$1,LOOKUP<span style=' color:008000; '>&#40;ROWS<span style=' color:#0000ff; '>&#40;D$25&#58;D28&#41;</span>,$E$2&#58;$E$12,D$2&#58;D$12&#41;</span>,&#34;&#34;&#41;</td></tr></table></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web &#62;&#62; </span><a style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4 </a>

continued on next post..

Admin
05-26-2011, 10:29 PM
Extract multiple results without helper column

<b>Sheet1</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:64px;" /><col style="width:216px;" /><col style="width:64px;" /><col style="width:64px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >A</td><td >B</td><td >C</td><td >D</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >33</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Order ID</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Product</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Unit Price</td><td style="font-family:Arial; font-size:10pt; text-align:center; ">Quantity</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >34</td><td style="font-family:Arial; font-size:10pt; text-align:right; ">10248</td><td >Queso Cabrales</td><td style="text-align:right; ">14</td><td style="text-align:right; ">12</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >35</td><td >*</td><td >Singaporean Hokkien Fried Mee</td><td style="text-align:right; ">9.8</td><td style="text-align:right; ">10</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >36</td><td >*</td><td >Mozzarella di Giovanni</td><td style="text-align:right; ">34.8</td><td style="text-align:right; ">5</td></tr><tr style="height:18px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >37</td><td >*</td><td >*</td><td >*</td><td >*</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >B34</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;B$34&#58;B34&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;B$2&#58;B$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;B$2&#58;B$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;B$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;B$34&#58;B34&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >C34</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;C$34&#58;C34&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;C$2&#58;C$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;C$2&#58;C$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;C$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;C$34&#58;C34&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >D34</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;D$34&#58;D34&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;D$2&#58;D$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;D$2&#58;D$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;D$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;D$34&#58;D34&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >B35</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;B$34&#58;B35&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;B$2&#58;B$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;B$2&#58;B$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;B$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;B$34&#58;B35&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >C35</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;C$34&#58;C35&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;C$2&#58;C$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;C$2&#58;C$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;C$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;C$34&#58;C35&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >D35</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;D$34&#58;D35&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;D$2&#58;D$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;D$2&#58;D$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;D$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;D$34&#58;D35&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >B36</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;B$34&#58;B36&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;B$2&#58;B$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;B$2&#58;B$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;B$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;B$34&#58;B36&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >C36</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;C$34&#58;C36&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;C$2&#58;C$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;C$2&#58;C$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;C$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;C$34&#58;C36&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >D36</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;D$34&#58;D36&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;D$2&#58;D$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;D$2&#58;D$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;D$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;D$34&#58;D36&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >B37</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;B$34&#58;B37&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;B$2&#58;B$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;B$2&#58;B$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;B$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;B$34&#58;B37&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >C37</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;C$34&#58;C37&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;C$2&#58;C$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;C$2&#58;C$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;C$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;C$34&#58;C37&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr><tr><td >D37</td><td >{=IF&#40;ROWS<span style=' color:008000; '>&#40;D$34&#58;D37&#41;</span>&#60;=COUNTIF<span style=' color:008000; '>&#40;$A$2&#58;$A$12,$A$34&#41;</span>,INDEX<span style=' color:008000; '>&#40;D$2&#58;D$12,SMALL<span style=' color:#0000ff; '>&#40;IF<span style=' color:#ff0000; '>&#40;$A$2&#58;$A$12=$A$34,ROW<span style=' color:#804000; '>&#40;D$2&#58;D$12&#41;</span>-ROW<span style=' color:#804000; '>&#40;D$2&#41;</span>+1&#41;</span>,ROWS<span style=' color:#ff0000; '>&#40;D$34&#58;D37&#41;</span>&#41;</span>&#41;</span>,&#34;&#34;&#41;}</td></tr></table></td></tr><tr><td ><span style=' font-family:Arial,Arial; font-size:9pt; font-weight:bold;'>Formula Array&#58;</span><span style=' font-family:Arial,Arial; font-size:9pt;'><br />Produce enclosing </span><span style=' font-family:Arial,Arial; font-size:9pt; font-weight:bold;'>{ }</span><span style=' font-family:Arial,Arial; font-size:9pt;'> by entering<br />formula with CTRL+SHIFT+ENTER!</span></td></tr></table> <br /><br /><span style="font-family:Arial; font-size:9pt; font-weight:bold;background-color:#ffffff; color:#000000; ">Excel tables to the web &#62;&#62; </span><a style ="font-family:Arial; font-size:9pt; color:#fcf507; background-color:#800040; font-weight:bold;" href="http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4 </a>