dlsdioquino
New Member
- Joined
- Mar 23, 2018
- Messages
- 7
Hello All
I need to extract the left most numbers in a cell.
Here is an example:
CELL EXTRACT
ASD-12 12
ASD-12-D-123 12
ASD-1-2-3 1
I already have this formula but it extracts all numbers
=SUM(MID(0&A5,LARGE(ISNUMBER(--MID(A5,ROW(INDIRECT("1:"&LEN(A5))),1))*ROW(INDIRECT("1:"&LEN(A5))),ROW(INDIRECT("1:"&LEN(A5))))+1,1)*10^ROW(INDIRECT("1:"&LEN(A5)))/10)
Would appreciate your help. Thank you!
I need to extract the left most numbers in a cell.
Here is an example:
CELL EXTRACT
ASD-12 12
ASD-12-D-123 12
ASD-1-2-3 1
I already have this formula but it extracts all numbers
=SUM(MID(0&A5,LARGE(ISNUMBER(--MID(A5,ROW(INDIRECT("1:"&LEN(A5))),1))*ROW(INDIRECT("1:"&LEN(A5))),ROW(INDIRECT("1:"&LEN(A5))))+1,1)*10^ROW(INDIRECT("1:"&LEN(A5)))/10)
Would appreciate your help. Thank you!