If statement help

Punquey

New Member
Joined
Jul 11, 2017
Messages
8
I have a table that looks like this:
AL INC.(CCML)
EX, LLC (FF)
TG & A/C (B-FF)
JING & A/C (B-FF)
OKA (B-FF)
EATING & A/C,INC(B-GA)
MECHANICAL AIR SYSTEMS INC

<colgroup><col></colgroup><tbody>
</tbody>

I need to be able to identify the B or the C in the parenthesis of each and name it Boy and Coy in a new column next to the original. I know how to identify (C and tag it, but not sure how to do two items and nest it. Thanks in advance!!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Excel 2010
AB
1AL INC.(CCML)Coy
2EX, LLC (FF)what should happen if it is not B or C
3TG & A/C (B-FF)Boy
4JING & A/C (B-FF)Boy
5OKA (B-FF)Boy
6EATING & A/C,INC(B-GA)Boy
7MECHANICAL AIR SYSTEMS INCWhat should happen if there is no ()

<colgroup><col><col><col></colgroup><tbody>
</tbody>
Sheet4
Copy down. Replace what should happen if it is not B or C and What should happen if there is no () with what you want
Worksheet Formulas
CellFormula
B1=IFERROR(IF(MID(A1,SEARCH("(",A1)+1,1)="B","Boy",IF(MID(A1,SEARCH("(",A1)+1,1)="C","Coy","what should happen if it is not B or C")),"What should happen if there is no ()")

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
here is another approach...
=IF(ISNUMBER(SEARCH("(c",A1)),"Coy",IF(ISNUMBER(SEARCH("(b",A1)),"Boy",""))
copied down
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,925
Members
449,056
Latest member
denissimo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top