Lil Hotpocket
New Member
- Joined
- May 16, 2015
- Messages
- 5
<quote>
I was curious if someone could tell me how to change this formula and add some properties. Such as: To ignore number strings lead by zeros, if an x is directly behind a + = - its counted as a 1 is extrated (or in the case of the - a -1), and if a - is directly in front of a number string, to extract that - along with the number string to make that number string negative.
</quote>
With A1:A7 containing
Code:
45t*&65/
9128A+BC37/E*465
91a28ABC3712DEF465
91.28ABC3712DEF465
91.28ABC37.1D2F465
464.59 DDFSDF 23.25 ccd 157.25
123asdf.asdf.asdf456
and
C1: 2
This array formula returns the specifiedNUMBER from the string,
Code:
B1: =LOOKUP(10^99,--MID("|"&A1,SMALL(IF(((--ISNUMBER(--("0"&MID(
SUBSTITUTE(" "&A1," ","|"),ROW($1:$25),1)))=0)*ISNUMBER(--(MID(
SUBSTITUTE(" "&A1," ","|"),ROW($2:$26),1)))),ROW($2:$26)),C1),ROW($1:$25)))
Copy B1 and paste into B2:B7
With the above examples, the formulas return these values:
Code:
45
37
28
91.28
2
23.25
456
NOTE If you want to display two decimal places, change the number format.
Are we done, yet?
I was curious if someone could tell me how to change this formula and add some properties. Such as: To ignore number strings lead by zeros, if an x is directly behind a + = - its counted as a 1 is extrated (or in the case of the - a -1), and if a - is directly in front of a number string, to extract that - along with the number string to make that number string negative.
</quote>