Split or delete certain data in excel

neworchadia

New Member
Joined
Mar 14, 2011
Messages
3
Hello guys;

I'm having a problem concerning certain data in excel cell, I've cells that contain "country" & "website" items, how can i separate them in two columns using a formula, i've tried the excel help formula with no use, so either deleting certain data from range to range (ex: from: "http" to ".com") or spliting the items will work for me.

And thanks for your support
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the forums!

Can you please provide some examples of your data, as well as desired outcome?
 
Upvote 0
Welcome again and thanks for your concern;

I have a table which contains a column of about 3000 rows including in each cell: A description of medical tools and product categories and its country and website, (ex: Product Categories: Haemodialysis Country: Taiwan http://www.*****.com) and i want to delete all the product categories or previous contents before the country and split the country and website in another two columns.

Hope it is useful:)

Best regards
 
Upvote 0
Given I understood your conditions properly, try:

Code:
Public Sub SplitColA()
Dim i   As Long, _
    LR  As Long, _
    str As String
LR = Range("A" & Rows.Count).End(xlUp).row
Application.ScreenUpdating = False
For i = 1 To LR
    str = Range("A" & i).Value
    Range("B" & i).Value = Mid$(str, InStr(str, "Country") + 9, InStr(str, "http://") - InStr(str, "Country") - 9)
    Range("C" & i).Value = Right$(str, Len(str) - InStr(str, "http://") + 1)
Next i
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Thanks alot MrKowz:grin::)

It really worked, you can't imagine my happiness working with the 3000 rows in just one click, just editing manually some cells which don't contain the website and it continues the loop.

Thank you very much, I really appreciate, looking forward to dealing with you in the future

:cool::cool:
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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