How do I parse a cell that contains the company name and address.

DonnaS

New Member
Joined
Oct 10, 2016
Messages
7
How do I parse a cell that contains the company name and address? The previous cell has the company name if that helps?

CustomerShip to
100% KIDS100% KIDS 485 CENTRAL AVE CEDARHURST, NY 11516
24 HOUR FITNESSUPS-SCS: 24 HOUR FITNESS 11991 LANDON DR MIRA LOMA, CA 91752
2 HOT YOGA1808 Old Briar Rd Highland Park, IL 60035
432 WEST SIDE432 WEST SIDE BELLEAIR BLUFFS PLAZA 100 INDIAN ROCK ROAD BEL
4 KIDS ONLY - TX4 KIDS ONLY 2900 W WASHINGTON, #120 STEPHENVILLE, TX 76401
4 SISTERS 1 CLOSET7080 nw 4th St PLANTATION, FL 33317

<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi, welcome to the board.

This is a very common type of question on this board, and it's not easy unless you can find a consistent pattern in your data.

Is there a pattern in your data ?

I can't see a consistent pattern in what you've posted.

And I have no idea where "2 HOT YOGA" and "4 SISTERS 1 CLOSET" fit in.
 
Upvote 0
This is the company name. When the data is downloaded it puts the company name in one cell and the company name again + the address into the second cell.

I would like to separate by the below headings if possible:
CompanyName|Address|City|State|ZipCode
 
Upvote 0
What you said in post #3 doesn't seem to match what you said in post #1.

"24 HOUR FITNESS" is just one of several examples in 6 lines of data that DON'T match what you said in post#3.
 
Upvote 0
Sorry to clarify there is no specific format. The two examples you were referring to were ones that had company names in front start the address field. Of the 1000+ addresses in need to parse 85% have the company name in the address feild.
 
Upvote 0
To separate it into fields so that I can upload into my system.

Address|City|State|ZipCode
 
Upvote 0
OK.
So let's think about this.
Forgetting about Excel specifically for a moment . . . taking your sample data, how exactly would YOU instruct someone else to parse out the company name ?
 
Upvote 0
Is there a way to delete phrase equal to contents in a cell? This would remove everything but the address and then a seperate function to seperate the address?
 
Upvote 0
You can indeed delete a phrase equal to the contents of a cell.

Let's take one of your examples, and make some guesses about what cells they are in.

Cell A1....................Cell B1
432 WEST SIDE.......432 WEST SIDE BELLEAIR BLUFFS PLAZA 100 INDIAN ROCK ROAD BEL

=substitute(B1,A1,"")

Try this and see what you get.

This should also work for SOME of the other examples you gave, but not all of them.

100% KIDSShould work
24 HOUR FITNESSShould work
2 HOT YOGAWon't work
432 WEST SIDEShould work
4 KIDS ONLY - TXWon't work -it's close but not an exact match
4 SISTERS 1 CLOSETWon't work

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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