Extract Numbers Only From Cell

Is there a formula to extract numbers only from a cell?


My data is like this:


SCORPION ATR ALL TERRAIN 116H OWL

P ZERO RUNFLAT 96Y BLK OE

SCORPION VERDE ALL SEASON ECOIMPACT 105V BLK XL OE



I want to get:

118

96

105


also i want to get the letter at the right of each value

H

Y

V


Thanks in advance

MacBook Pro 15″, macOS 10.15

Posted on Aug 29, 2020 8:00 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 29, 2020 8:12 PM

One way is to do something like this:



In B2, filled down:


=REGEX.EXTRACT(A2,"\d+",1)


In C2, filled down:


=LEFT(TEXTAFTER(A2,B2),1)


This extracts the numbers as "text." If you want them as values on which you can perform arithmetic then you can simply multiply by 1, like this:


=REGEX.EXTRACT(A2,"\d+",1)*1


SG


4 replies
Question marked as Top-ranking reply

Aug 29, 2020 8:12 PM in response to Rovafe

One way is to do something like this:



In B2, filled down:


=REGEX.EXTRACT(A2,"\d+",1)


In C2, filled down:


=LEFT(TEXTAFTER(A2,B2),1)


This extracts the numbers as "text." If you want them as values on which you can perform arithmetic then you can simply multiply by 1, like this:


=REGEX.EXTRACT(A2,"\d+",1)*1


SG


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Extract Numbers Only From Cell

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.