SOLVED
Transform
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
phoebe_90
8 - Asteroid
07-30-2023
07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to transfer A into B
A
Expense Type |
Transportation 3% – Online ride-hailing (China Only) |
Transportation 9% – Train (China Only) |
B
Expense rate |
3% |
9% |
Solved! Go to Solution.
Labels:
- Labels:
- Transformation
5 REPLIES 5
ArnaldoSandoval
12 - Quasar
07-30-2023
07:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @phoebe_90
You can use the following regular expression:
.*\s(\d*%)\s.*
Regular Expression Tool:
Note, the regex parses #% and ##% and ###% it does not handled decimal points.
Hope this helps,
Arnaldo
BRRLL99
11 - Bolide
07-30-2023
07:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Use Regex Tool and try this formula \d+%
flying008
15 - Aurora
07-30-2023
09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, @phoebe_90
1- By RegEx tool of Parse method:
([0-9.]+?%)
2- Use formula :
Substring([Expense Type],FindString([Expense Type], ' ') + 1,FindString([Expense Type], '%') - FindString([Expense Type], ' '))
binuacs
21 - Polaris
07-31-2023
06:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@phoebe_90 The regex tokenize would do the trick
grazitti_sapna
17 - Castor
08-03-2023
10:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi phoebe_90
You can use a RegEx tool and use the expression \d+% with output method as Tokenize
Thanks!
Sapna Gupta
