Split text without using data-text to columns

J

Jambruins

I have the following in cells
D3: -2.5 -111
D4: +2.5 +101
D5: +10.5 -114
D6: -10.5 +104
D7: -8 +100
D8: +8 -110

Is there a formula I can enter into cell H3 that will give me just -2.5?
Note that all the cells aren't necessarily in the same format (some are X.5
and some are X). Thanks
 
D

Dave O

This formula
=MID(D3,1,FIND(" ",D3,1)-1)
.... looks for the space in between the numbers, and pulls everything to
the left of the space.
 
E

Elkar

Assuming all of your cells follow the same format as Number - Space - Number,
then this will work to extract the first number before the space:

=LEFT(D3,FIND(" ",D3,1)-1)

HTH,
Elkar
 
S

SVC

Assuming that in cell D3 you have a space after the first number and the cell
is formatted as text, in cell H3 type the following formula:
=MID(D3,1,FIND(" ",D#,1)-1) and copy down. Note that there is a single space
between the two quotation marks.
 
J

Jambruins

thanks to all three of you for the help

SVC said:
Assuming that in cell D3 you have a space after the first number and the cell
is formatted as text, in cell H3 type the following formula:
=MID(D3,1,FIND(" ",D#,1)-1) and copy down. Note that there is a single space
between the two quotation marks.
 
R

RagDyer

One way:

=MID(D3,FIND(" ",D3)+1,100)
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
 
D

Dana DeLouis

...Split text ...

If D3 does in fact have "Text", then a possible alternative...

=IMREAL(D3& "j")

HTH. :>)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top