SOLVED
Get last 4 digits of a string
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
wonka1234
10 - Fireball
‎12-12-2021
05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Labels:
- Labels:
- Custom Tools
2 REPLIES 2
AngelosPachis
16 - Nebula
‎12-12-2021
05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@wonka1234 can you provide an example of how your string looks like?
The simplest way would be Right([your string field],4) that will get you the 4 last characters.
If you want those to be digits, you can use a RegEx tool set to parse the string with the following expression
.*(\d{4})
Lunamoona0
5 - Atom
‎11-15-2022
09:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The formula =RIGHT(A2,LEN(A2)-4) in cell B2 is used for removing the last 4 digits of numbers in the product code.
