Question : Find first space in a cell and show all that is on the left of it

I tried:
=MID(A6,1,FIND(" ",A6))
 but I need it to account for 1 or more spaces in other words
"1234 xyz" would return 1234
"1234  xyz" would also return 1234

Answer : Find first space in a cell and show all that is on the left of it

Out of curiosity, try this with the same test text:

=FIND(CHAR(160),A6)

I wonder if what you had there is the infamous non-breaking space...
Random Solutions  
 
programming4us programming4us