Macro to trim if "S" is the last letter of a cell

markman2

New Member
Joined
Nov 13, 2009
Messages
12
Hello, I am trying to trim a line of words
Fish Trimmers
Groomers
Measurers
Family Therapist
HR Agents


I want to trim the cells if there is a "S" in the end of the cell, so that desired output will be ..
Fish Trimmer
Groomer
Measurer
Family Therapist
HR Agent

Keeping in mind, that if cell does not have last letter "S" it is not changed. Pls help, any suggestions, trial macro codes are greatly appreciated thanks.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Works like a charm, Thanks jo really appreciate it. ..and i was doing That manually haha feel stupid now
 
Upvote 0
No problem...

However, you may need to reconsider your logic..

It seems you want to remove the "Plural" indicator s...

What about words that ACTUALLY end with S, like say Gas, Kiss, Mass, etc...
 
Upvote 0
Its a List of jobs.
so usually most of them are ending in -ark or -or . Not too worried about that ending with actual 's' since maybe 1-2% .. little bit of collateral damage but its ok saving 5 hours of formatting 2k list
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,332
Members
448,566
Latest member
Nickdozaj

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