Podder1965
New Member
- Joined
- Feb 10, 2021
- Messages
- 14
- Office Version
- 2016
- Platform
- Windows
Hi,
I am trying to remove characters from a cells then return the remaining values to a new cell, however, there are certain criteria's I require.
The cells are in column B and will consist of the following:
XXX1
XXX/1
XXX01
Note the last digit may be 2 or 3 etc upto 20.
What I require is to remove all characters before the number but need to have a zero before a single digit number e.g. XXX1 to become 01 or XXX/1 to become 01, but XXX/20 to be 20
I also would like the value "01" to be text when completed.
Is it possible to achieve this in excel vba?
Thanks
I am trying to remove characters from a cells then return the remaining values to a new cell, however, there are certain criteria's I require.
The cells are in column B and will consist of the following:
XXX1
XXX/1
XXX01
Note the last digit may be 2 or 3 etc upto 20.
What I require is to remove all characters before the number but need to have a zero before a single digit number e.g. XXX1 to become 01 or XXX/1 to become 01, but XXX/20 to be 20
I also would like the value "01" to be text when completed.
Is it possible to achieve this in excel vba?
Thanks