Forum Discussion
QOne7535
Feb 13, 2024Copper Contributor
remove all other char spaces number from from cell: only the first char after space must remain
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
- Feb 14, 2024
If you have Microsoft 365:
=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))
Otherwise:
=IFERROR(LEFT(TRIM(L161), FIND(" ", TRIM(L161))-1), TRIM(L161))
QOne7535
Feb 14, 2024Copper Contributor
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
3-1599 SN 0766
VARIOUS
K24.5100.7 S/N 4083/5683/1347
I like the first word only removing others
HansVogelaar
Feb 14, 2024MVP
If you have Microsoft 365:
=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))
Otherwise:
=IFERROR(LEFT(TRIM(L161), FIND(" ", TRIM(L161))-1), TRIM(L161))
- QOne7535Feb 14, 2024Copper ContributorHans, the first one: this formula Works
=LET(T, TRIM(L161), IFERROR(TEXTBEFORE(T, " "), T))
thank you