Podcast 1043

shift-del

Well-known Member
Joined
Aug 28, 2009
Messages
834
Office Version
  1. 365
Platform
  1. Windows
Hello

The podcast is about a table with company name in column A and address including the company name in column B. The goal is to get the address without the company name.

Bill suggested something like this:
Code:
=MID(B1,LEN(A1)+2,9^9)


I would like to suggest some other ways to solve the problem:
Code:
=TRIM(SUBSTITUTE(B1,A1,""))
=SUBSTITUTE(B1,A1&" ","")
=REPLACE(B1,1,LEN(A1)+1,"")
=RIGHT(B1,LEN(B1)-LEN(A1)-1)


With SUBSTITUTE() you don't have to worry about the length.
And TRIM() gets rid of any annoying space that ist left.



shift-del

PS: This is my first post in this messageboard.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to the MrExcel message board.

Thanks for those cool suggestions. They will be featured in episode 1097 of the podcast on September 8 2009.

Drop me an e-mail to bill at mrexcel.com with a postal mailing address and I will send out one of the Excel Master pins.

Bill
 

Forum statistics

Threads
1,222,725
Messages
6,167,861
Members
452,150
Latest member
jenningstrades

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