How can I delete the fourth word in every column in an excel spreadsheet? For example, I have "Mr. and Mrs Smith". I want to keep Mr. and Mrs. but delete Smith. Isn't there a way to find and delete the 4th word? Thanks so much for any help...
feedback
|
|
This is kind of a workaround, but it will work if you're just dealing with regular text (not formulas). Let's say your sheet with data on it is called "Sheet1". Create a new worksheet on your spreadsheet (let's assume it's called "Sheet2"), and in A1, type:
If you want to delete only the fourth word, type:
Copy cell A1 and paste it in the cells on Sheet2 that match up with cells on Sheet1 with the data you want to work with. (So if you have data on Sheet1 in cells A1 through D5, paste it on Sheet2 in cells A1 through D5.) Copy all those cells you pasted, switch to Sheet1, and paste values at the matching spots. You can now delete Sheet2. | |||
|
feedback
|
|
This might be an off the wall idea, but try making the file into a space delimited file, then open it with excel. Now delete the 4th column. This sounds good on paper... Other than this, I don't know. | |||||
feedback
|
|
Here's a more elegant/efficient way to do it, if you're okay to paste in a Visual Basic macro: Let's say your sheet with data on it is called "Sheet1".
Note: If you want to delete everything after the third word, paste this instead:
(Source Note: I modified the instructions on how to get the Developer tab from the Excel Help file.) | |||
|
feedback
|