Excel 2007<table style="background-color: rgb(255, 255, 255); border: 1px solid rgb(166, 170, 182); border-collapse: collapse;" rules="all" cellpadding="2.5px"><colgroup><col style="background-color: rgb(224, 224, 240);" width="25px"><col><col><col></colgroup><thead><tr style="background-color: rgb(224, 224, 240); text-align: center; color: rgb(22, 17, 32);"><th>
</th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td style="color: rgb(22, 17, 32); text-align: center;">1</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">Manuf.</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Prod</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">2</td><td style="text-align: center; border: 1px solid black;">268</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">42</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">3</td><td style="text-align: center; border: 1px solid black;">265</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">42</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">4</td><td style="text-align: center; border: 1px solid black;">269</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">58</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">5</td><td style="text-align: center; border: 1px solid black;">270</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">59</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">6</td><td style="text-align: center; border: 1px solid black;">271</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">58</td></tr></tbody></table>
<table style="background-color: rgb(255, 255, 255); border: 1px solid rgb(166, 170, 182); border-collapse: collapse;" rules="all" cellpadding="2.5px"><thead><tr style="background-color: rgb(224, 224, 240); text-align: center; color: rgb(22, 17, 32);"><th>
</th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td style="color: rgb(22, 17, 32); text-align: center;">8</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Prod</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">Product</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Categ.</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">9</td><td style="text-align: center; border: 1px solid black;">42</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">10</td><td style="text-align: center; border: 1px solid black;">42</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">11</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">12</td><td style="text-align: center; border: 1px solid black;">59</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">13</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">14</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">15</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">16</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">17</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">18</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">
</td></tr></tbody></table>
I need help to fill the ID Categ. column. Basically ID Categ will contain number of ID from Table 1.
ID Categ will look the Product and ID Product. If they find a match combination (for example Nokia and 42) it will contain 268 and so on.
I've think about using IF but i don't know how to set the condition and stuff. Any suggestion ?
</th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td style="color: rgb(22, 17, 32); text-align: center;">1</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">Manuf.</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Prod</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">2</td><td style="text-align: center; border: 1px solid black;">268</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">42</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">3</td><td style="text-align: center; border: 1px solid black;">265</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">42</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">4</td><td style="text-align: center; border: 1px solid black;">269</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">58</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">5</td><td style="text-align: center; border: 1px solid black;">270</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">59</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">6</td><td style="text-align: center; border: 1px solid black;">271</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">58</td></tr></tbody></table>
Table1
<table style="background-color: rgb(255, 255, 255); border: 1px solid rgb(166, 170, 182); border-collapse: collapse;" rules="all" cellpadding="2.5px"><thead><tr style="background-color: rgb(224, 224, 240); text-align: center; color: rgb(22, 17, 32);"><th>
</th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td style="color: rgb(22, 17, 32); text-align: center;">8</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Prod</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">Product</td><td style="text-align: center; border: 1px solid black; background-color: rgb(219, 229, 241);">ID Categ.</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">9</td><td style="text-align: center; border: 1px solid black;">42</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">10</td><td style="text-align: center; border: 1px solid black;">42</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">11</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">12</td><td style="text-align: center; border: 1px solid black;">59</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">13</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">14</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">15</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Motorola</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">16</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">17</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">NEC</td><td style="text-align: center; border: 1px solid black;">
</td></tr><tr><td style="color: rgb(22, 17, 32); text-align: center;">18</td><td style="text-align: center; border: 1px solid black;">58</td><td style="text-align: center; border: 1px solid black;">Nokia</td><td style="text-align: center; border: 1px solid black;">
</td></tr></tbody></table>
Table2
I need help to fill the ID Categ. column. Basically ID Categ will contain number of ID from Table 1.
ID Categ will look the Product and ID Product. If they find a match combination (for example Nokia and 42) it will contain 268 and so on.
I've think about using IF but i don't know how to set the condition and stuff. Any suggestion ?