Returnig a set instance after a Succesful Find

Chip_Excel

New Member
Joined
Jul 20, 2010
Messages
8
Hi Everyone,
This is what I have in my cells:
<table border="0" cellpadding="0" cellspacing="0" height="15" width="517"><col width="111"><col width="406"><tbody><tr height="17"> <td class="xl155" style="height: 12.75pt; width: 83pt;" height="17" width="111">
</td> <td class="xl155" style="width: 305pt;" width="406">
</td> </tr></tbody></table><table border="0" cellpadding="0" cellspacing="0" width="517"><col width="111"><col width="406"><tbody><tr height="17"> <td class="xl155" style="height: 12.75pt; width: 83pt;" height="17" width="111">Column A</td> <td class="xl155" style="width: 305pt;" width="406">Column B</td> </tr></tbody></table> <table border="0" cellpadding="0" cellspacing="0" width="745"><col style="width: 254pt;" width="339"> <col style="width: 305pt;" width="406"> <tbody><tr style="height: 51pt;" height="68"> <td style="height: 51pt; width: 254pt;" height="68" width="339"> <table border="0" cellpadding="0" cellspacing="0" width="517"><col style="width: 83pt;" width="111"> <col style="width: 305pt;" width="406"> <tbody><tr style="height: 51pt;" height="68"> <td style="height: 51pt; width: 83pt;" height="68" width="111">Toddler/Baby Boy</td> <td class="xl155" style="width: 305pt;" width="406">Toddler/Baby Boy Knits Oct/Nov/Dec11 (Drop)
Newborn Oct/Nov/Dec11 (carry over)
Mens Knits Oct/Nov/Dec11 (Drop)
Boys Knits Oct/Nov/Dec11 (Drop)
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">Newborn</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">Toddler/Baby Boy Knits Oct/Nov/Dec11 (Drop)
Newborn Oct/Nov/Dec11 (carry over)
Mens Knits Oct/Nov/Dec11 (Drop)
Boys Knits Oct/Nov/Dec11 (Drop)
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">Mens</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">Toddler/Baby Boy Knits Oct/Nov/Dec11 (Drop)
Newborn Oct/Nov/Dec11 (carry over)
Mens Knits Oct/Nov/Dec11 (Drop)
Boys Knits Oct/Nov/Dec11 (Drop)
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">Boys</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">Toddler/Baby Boy Knits Oct/Nov/Dec11 (Drop)
Newborn Oct/Nov/Dec11 (carry over)
Mens Knits Oct/Nov/Dec11 (Drop)
Boys Knits Oct/Nov/Dec11 (Drop)
</td> </tr> </tbody></table></td> <td class="xl155" style="width: 305pt;" width="406">
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">
I am trying to write a formula that would find the value in column A within the text of column B, returns the value in parenthesis that occurs directly after it and put in in column C.
So, C1 would return "drop", C2 "carry-over", C3 "drop", and C4 "drop.
Thanks for your help and let me know if you have any questions.
Best,
Chip

</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">
</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">
</td> </tr> <tr style="height: 51pt;" height="68"> <td style="height: 51pt;" height="68">
</td> <td class="xl155" style="border-top: medium none; width: 305pt;" width="406">
</td> </tr> </tbody></table>
 

alx7000

Board Regular
Joined
Nov 14, 2010
Messages
134
Hi Chip,

There may be an easier solution but this one seems to do what I think it is you were after:
Excel Workbook
ABC
1Toddler/Baby BoyToddler/Baby Boy Knits Oct/Nov/Dec11 (Drop) Newborn Oct/Nov/Dec11 (carry over) Mens Knits Oct/Nov/Dec11 (Drop) Boys Knits Oct/Nov/Dec11 (Drop)Drop
2NewbornToddler/Baby Boy Knits Oct/Nov/Dec11 (Drop) Newborn Oct/Nov/Dec11 (carry over) Mens Knits Oct/Nov/Dec11 (Drop) Boys Knits Oct/Nov/Dec11 (Drop)carry over
3MensToddler/Baby Boy Knits Oct/Nov/Dec11 (Drop) Newborn Oct/Nov/Dec11 (carry over) Mens Knits Oct/Nov/Dec11 (Drop) Boys Knits Oct/Nov/Dec11 (Drop)Drop
4BoysToddler/Baby Boy Knits Oct/Nov/Dec11 (Drop) Newborn Oct/Nov/Dec11 (carry over) Mens Knits Oct/Nov/Dec11 (Drop) Boys Knits Oct/Nov/Dec11 (Drop)Drop
Sheet1
Excel 2010
Cell Formulas
CellFormula
C1=MID(B1,(FIND("(",B1,FIND(A1,B1))+1),(FIND(")",B1,FIND(A1,B1)))-(FIND("(",B1,FIND(A1,B1))+1))


Any questions please let me know.

Cheers,
alx7000
 

Forum statistics

Threads
1,081,849
Messages
5,361,677
Members
400,644
Latest member
ndroger1

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top