SOLVED

remove all other char spaces number from from cell: only the first char after space must remain

Copper Contributor

hello can anyone advise why this formula i created

=LEFT(TRIM(L161),FIND(" ",(L161))-1) results #value!

 

send me email email address removed for privacy reasons

 

 

 

7 Replies

@Harun24HR 

 

here is sample

input     

VARIOUS  

 

expected result must be

VARIOUS  

 

today, I am getting

#value!

 

 

 

 

this are sample input:
3-1599 SN 0766
VARIOUS
K24.5100.7 S/N 4083/5683/1347

I like the first word only removing others
best response confirmed by QOne7535 (Copper Contributor)
Solution

@QOne7535 

If you have Microsoft 365:

=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))

Otherwise:

=IFERROR(LEFT(TRIM(L161), FIND(" ", TRIM(L161))-1), TRIM(L161))

Hans, the first one: this formula Works
=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))


thank you
1 best response

Accepted Solutions
best response confirmed by QOne7535 (Copper Contributor)
Solution

@QOne7535 

If you have Microsoft 365:

=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))

Otherwise:

=IFERROR(LEFT(TRIM(L161), FIND(" ", TRIM(L161))-1), TRIM(L161))

View solution in original post