Delete a specific text in Raw Data

Moogle03

New Member
Joined
Mar 24, 2014
Messages
1
I have a set of raw data I export everyday. When I export the data, all the raw data is on 1 column. I have a row that says "2 tickets" and need to delete the "ticket" and "tickets" text before I can add to my access database. I only want the numbers to be intact.

I do not care of the "mobile ticket" will be delete to "mobile."

I have never used VBA or Macros before so any help would be greatly appreciated.


Example:

Lower 109
CC
$20.90
/EA
2 Tickets
Mobile Ticket
5/30/2019
Upper 109
D
$55.90
/EA
1 Ticket
Mobile Ticket
5/29/2019
Floor
1
$100.90
/EA
5 Tickets
Mobile Ticket
5/28/2019
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
You can do this with the standard Replace funtion in Xl, Ctrl H, but if you want a macro try
Code:
Sub Moogle03()
   Range("A:A").Replace "ticket*", "", xlPart, , False, , False, False
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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