Equation to remove last character if letter and first leading 0

NormChart55

New Member
Joined
Feb 22, 2022
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I am looking for a way to remove letters if they appear at the end of an item as well as removing a 0 only if it appears between 000 and 099 after the characters "RV". I have an example list below and hoping there is an easy way to remove these from a mass list with a formula. Thanks for any information and help.

Examples
Store numbers - always starts with RV and could go up to RV9999a (or b,c,d,e)

RV002A - should be RV02
RV050G - should be RV50
RV027H - should be RV27
RV1000 - should be RV1000
RV429A - should be RV429
 
Thanks for the information. There is only ever 1 letter. I applied this one, but I am getting the stores that are between 1-10 do not have a 0.

Example: WZ002A -> goes to WZ2 but should be WZ02. All others are coming out as expected
Sorry, I overlooked that part. I though you wanted all leading zeroes on the number portion dropped.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Thanks. This one removes the letter but still leaves the leading 0s for me
I think it matches your sample, so I'm not sure what you mean. You have an example output with one leading zero. But, you've got a solution. So that is good.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,011
Members
452,374
Latest member
keccles

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