Remove from String Query

gripper

Board Regular
Joined
Oct 29, 2002
Messages
176
Hi board members,

I am hoping to get some assistance on an issue with a field in a table of mine.

I have a table "keyword" within that table there are about 10 fields. One of my fields has a file name in it (example: Vehicles_1_trains.csv) These records were all imported and the file name they came from was placed in this field. Now I wish to remove all the ".csv" reference on all my records from within this "FileName" field making sure to leave everything else in tack.

Here is my thought process
1. I will make a back up copy of the table first
2. Then run some type of update query on that field.

I need help with the second part.

What would the syntax be to remove ".csv" from every record in that field.

Thank you for you help.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You don't necessarily need a syntax to replace all those extensions.

Hit CTRL+H, and in the window, and replace .csv with blank. ensure you select the concerned field name in the list below, and also to match any part of the field.

If you are looking for an SQL query to do this, revert.
 
Upvote 0
That works. I don't know what I was thinking of. I guess I was making it too complicated.

Thank for the help
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
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