Forum Discussion

QOne7535's avatar
QOne7535
Copper Contributor
Feb 13, 2024
Solved

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      
  • HansVogelaar's avatar
    HansVogelaar
    Feb 14, 2024

    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))

Resources