I_AM
Board Regular
- Joined
- Jul 2, 2002
- Messages
- 141
Hello.
I wish to extract a variable sized number from either side of text
Assuming the following is in D1,
10 vs 25 I wish to extract 10 to one cell, 25 to another
1 vs 125 I wish to extract 1 to one cell, 125 to another
0 vs 2 I wish to extract 0 to one cell, 2 to another
All with a single formula.
Extracting with
=LEFT(D1, FIND(CHAR(32), D1)-0)+0 works well with LEFT, not so using the same with RIGHT.
The numbers extracted I wish to add using:
=SUMIFS(A1:A10,B1:B10,C1)
The result of =LEFT(D1, FIND(CHAR(32), D1)-0)+0 are added, yet the results of =LEFT(D1, FIND(CHAR(32), D1)-0) are not?
I think I'm after everything LEFT of the first CHAR(32) and everything RIGHT of the second CHAR(32)?
Thank you.
I wish to extract a variable sized number from either side of text
Assuming the following is in D1,
10 vs 25 I wish to extract 10 to one cell, 25 to another
1 vs 125 I wish to extract 1 to one cell, 125 to another
0 vs 2 I wish to extract 0 to one cell, 2 to another
All with a single formula.
Extracting with
=LEFT(D1, FIND(CHAR(32), D1)-0)+0 works well with LEFT, not so using the same with RIGHT.
The numbers extracted I wish to add using:
=SUMIFS(A1:A10,B1:B10,C1)
The result of =LEFT(D1, FIND(CHAR(32), D1)-0)+0 are added, yet the results of =LEFT(D1, FIND(CHAR(32), D1)-0) are not?
I think I'm after everything LEFT of the first CHAR(32) and everything RIGHT of the second CHAR(32)?
Thank you.