May 27, 2019 06:49 PM
hi i have a column with codes like this “0010o00002Fs719AAB”
What will the formula to extract the 8 of the code?
it should become Fs719AAB.
Thanks in advance!
Chris
May 27, 2019 07:20 PM
RIGHT({Field name}, 8)
More formula reference:
May 27, 2019 07:40 PM
Thanks so much! worked like a charm
Aug 05, 2019 12:05 AM
Hi,
I have three examples below. What code required to extract just the dollar amount for all three examples?
WEEKLY PAY 9888.95 N
FULL TANK-FUEL -80.00 N
T8IPK68700 300.00 N
Thanks!
Aug 05, 2019 08:36 PM
I can’t think of a way to extract that number because there are too many inconsistencies in the formatting.
There may be a way to do it by running a bunch of nested tests to check for various combinations of separating spaces, but IMO it would be more of a headache than it’s worth.
Aug 05, 2019 09:15 PM
I knew it would be a challenge, thanks for your help!
Aug 06, 2019 03:31 AM
Okay, I don’t know what it is lately, but the past two days I’ve woken up with solutions to certain problems in my head, and today it was this one. I recalled a trick I’d seen elsewhere, and it works quite well in this case. Here’s the formula to extract that value. {Text}
is my field where I put the source text; change it to match your own field name:
VALUE(TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(Text, " N", ""), " ", REPT(" ", 10)), 12)))
At first it might look like the decimals are being ignored, but they’re not. That’s just formatting. Format the field as currency ,or decimal with two places, and you’ll see them.
Aug 06, 2019 05:04 AM
Justin,
You are an Airtable Jedi! The force are with you, it works!
Aug 06, 2019 05:17 AM
Hi Justin,
How would you re-write the code so that it will works my other text lines that ending with A, S or something else? I have all these in the same field.
Aug 06, 2019 05:24 AM
This should work, as long as the amount to trim off the right end is always two characters (i.e. a space and a single letter).
VALUE(TRIM(RIGHT(SUBSTITUTE(LEFT(Text, LEN(Text) - 2), " ", REPT(" ", 10)), 12)))