Help with "Excel remove characters from left" function ?

Maverick27

Active Member
Joined
Sep 23, 2010
Messages
329
Office Version
  1. 2013
Platform
  1. Windows
G'Day Excel Gurus

Column X of my worksheet has 236 rows of Restaurant Physical Address Info in the format below:

excel-forum.jpg


The general data format of the Address shows the Restaurant Name, followed by the Physical Address, seperated by a comma.

Anyone care to share a Excel Function to remove the Restaurant Name from the Data & ONLY display the Physical Address ?

The 1st Comma ( from the Left ) in the Text can be used in the logic to formulate the Function - ie remove Left Chars up-to & including the 1st Comma from left.

Note: the space btwn the 1st comma & Kilimani Mall

Final Result:

Kilimani Mall, 2nd Floor , Opposite Yaya Centre , Tigoni Road , Kilimani Estate , Nairobi City , Nairobi County , Nairobi Province , Kenya , & , House Of Mandi , 8th Street , Eastleigh , Nairobi City , Nairobi County , Nairobi Province , Kenya

Thanks in Advance.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Assuming your data starts in row 1:
VBA Code:
Sub RemoveChar()
    Application.ScreenUpdating = False
    Dim rng As Range
    For Each rng In Range("X1", Range("X" & Rows.Count).End(xlUp))
        rng = Mid(rng, WorksheetFunction.Find(",", rng) + 2)
    Next rng
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 365 with the textafter function, you could also use
Excel Formula:
=TEXTAFTER(X2,", ")
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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