Instances of DBA

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
Is there a formula that can give me the string of text after an intsance of DBA.

Assuming the original text is in Column A

[TABLE="width: 500"]
<tbody>[TR]
[TD]Original Text[/TD]
[TD]Desired Result[/TD]
[/TR]
[TR]
[TD]Elite Southern Construction LLC dba Master Roofing[/TD]
[TD]Master Roofing[/TD]
[/TR]
[TR]
[TD]Riland Richardson, Inc. Dba C & R Trucking[/TD]
[TD]C & R Trucking[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Assuming your data is in column A starting at row 2, place this formula in cell B2 and copy it down as far as there is data in column A.
=RIGHT(A2,LEN(A2)-SEARCH("DBA",A2,1)-3)
 
Last edited:
Upvote 0
This will take care of any case regardless if uppercase, lowercase, or camelcase and will trim the space after DBA which can help when you have something like "DBAC & R Trucking" when someone forgets the space

=TRIM(RIGHT(A2,LEN(A2)-SEARCH("dba",A2)-2))


EDIT: Ahh someone beat me to it lol, now you have two options
 
Last edited:
Upvote 0
Hi,

Another way:


Book1
AB
1Original TextDesired Result
2Elite Southern Construction LLC dba Master RoofingMaster Roofing
3Riland Richardson, Inc. Dba C & R TruckingC & R Trucking
Sheet271
Cell Formulas
RangeFormula
B2=MID(A2,SEARCH("Dba",A2)+4,255)


Formula copied down.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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