EXCEL: REMOVE PRODUCT SIZE / REMOVE SUFFIX

Anonymous
2022-04-15T10:04:29+00:00

Hi,

My product variants have the size at the end of each variant, however I want to remove the size and just keep product code. I have tried substitute but in Excel version I am using it will only let me enter certain amount. Is there another way? I am using a MAC.

E.G

CWNOS01RPLN20-XXS - would become CWNOS01RPLN20

CWNOS01RPLN20-XS - would become CWNOS01RPLN20

CWNOS01RPLN20-S - would become CWNOS01RPLN20

CWNOS01RPLN20-M - would become CWNOS01RPLN20

CWNOS01RPLN20-L - would become CWNOS01RPLN20

CWNOS01RPLN20-XL - would become CWNOS01RPLN20

CWNOS51CPLN20-18 - would become CWNOS51CPLN20

CWNOS51CPLN20-20 - would become CWNOS51CPLN20

CWNOS51CPLN20-22 - would become CWNOS51CPLN20

CWNOS51CPLN20-24 - would become CWNOS51CPLN20

CWNOS51CPLN20-26 - would become CWNOS51CPLN20

CWNOS51CPLN20-28 - would become CWNOS51CPLN20

Microsoft 365 and Office | Excel | For business | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2022-04-15T10:24:14+00:00
    0 comments No comments
  2. Anonymous
    2022-04-15T10:24:30+00:00

    Hi Joe

    Try the formula as indicated in the picture below. Then simply adapt it/change the ranges to the real scenario in your side.

    =TRIM(MID(A2,SEARCH("-",A2)+1,5))

    Nevertheless, you may also try other automatic and effective methods with features within excel

    The following videos will provide you with the instructions.

    https://www.youtube.com/watch?v=1KimYFzET1w&t=181s

    https://www.youtube.com/watch?v=_py2LLQiYvw

    I hope this helps you and gives a solution to your question

    Regards

    Jeovany

    0 comments No comments
  3. Anonymous
    2022-04-15T10:36:17+00:00

    Brilliant - thanks so much Jeovany.

    0 comments No comments
  4. Anonymous
    2022-04-15T10:56:27+00:00

    Sorry Jeovany, this just keeps the size in column b - column b i would want to be CWNOS01RPLN20 and not the size?

    0 comments No comments
  5. Anonymous
    2022-04-15T11:01:24+00:00

    Fair enough

    Here is the formula =TRIM(LEFT(A2,SEARCH("-",A2)-1))

    1 person found this answer helpful.
    0 comments No comments