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?

[TABLE="width: 814"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Ship to[/TD]
[/TR]
[TR]
[TD]100% KIDS[/TD]
[TD]100% KIDS 485 CENTRAL AVE CEDARHURST, NY 11516[/TD]
[/TR]
[TR]
[TD]24 HOUR FITNESS[/TD]
[TD]UPS-SCS: 24 HOUR FITNESS 11991 LANDON DR MIRA LOMA, CA 91752[/TD]
[/TR]
[TR]
[TD]2 HOT YOGA[/TD]
[TD]1808 Old Briar Rd Highland Park, IL 60035[/TD]
[/TR]
[TR]
[TD]432 WEST SIDE[/TD]
[TD]432 WEST SIDE BELLEAIR BLUFFS PLAZA 100 INDIAN ROCK ROAD BEL[/TD]
[/TR]
[TR]
[TD]4 KIDS ONLY - TX[/TD]
[TD]4 KIDS ONLY 2900 W WASHINGTON, #120 STEPHENVILLE, TX 76401[/TD]
[/TR]
[TR]
[TD]4 SISTERS 1 CLOSET[/TD]
[TD]7080 nw 4th St PLANTATION, FL 33317[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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
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.

[TABLE="class: cms_table, width: 814"]
<tbody>[TR]
[TD]100% KIDS[/TD]
[TD]Should work[/TD]
[/TR]
[TR]
[TD]24 HOUR FITNESS[/TD]
[TD]Should work[/TD]
[/TR]
[TR]
[TD]2 HOT YOGA[/TD]
[TD]Won't work[/TD]
[/TR]
[TR]
[TD]432 WEST SIDE[/TD]
[TD]Should work[/TD]
[/TR]
[TR]
[TD]4 KIDS ONLY - TX[/TD]
[TD]Won't work -it's close but not an exact match[/TD]
[/TR]
[TR]
[TD]4 SISTERS 1 CLOSET[/TD]
[TD]Won't work[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
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