• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Removing only the first numbers from a mixed cell

Kinghart

Member
hi...

What I'm trying to do is, I want to remove only the first numbers from a mixed cell, example:


Cell A2 states:

23 pkts x 20 gms

Cell A3 States:

440 cans x 200 ml


I want Cell C2 to say:

23

AND C3 to say:

440


I'm using this formula by the way, but its not what i actually wants..

=LEFT(E7,FIND("^^",SUBSTITUTE(" "&E7," ","^^",LEN(" "&E7)-LEN(SUBSTITUTE(" "&E7," ",""))))-1)
 
Hi Kinghart


Assuming your data is in A2 use this formula in cell C2:


Code:
=LEFT(A2,FIND(" ",A2,1))


Regards,

Faseeh
 
Back
Top