Forum Discussion

José Lorenzo Strédel García's avatar
Aug 21, 2019
Solved

Help with Excel´s formulas

Hi,   I would like to separate the numbers in the column "ARTICLE" and copy them into the column "SIZE". For the Excels cells without any number in the content, I would like that in the "SIZE" colu...
  • Haytham Amairah's avatar
    Aug 21, 2019

    José Lorenzo Strédel García

     

    Hi,

     

    Please try this formula:

    =IF(ISNUMBER(--RIGHT(TRIM(A2),1)),
    MID(SUBSTITUTE(A2," ",",",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))),
    SEARCH(",",SUBSTITUTE(A2," ",",",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))+1,
    LEN(SUBSTITUTE(A2," ",",",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-SEARCH(",",SUBSTITUTE(A2," ",",",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))+1),
    "N/A")

     

     

    Hope that helps