+ Reply to Thread
Results 1 to 4 of 4

Remove Brand and Category from Product Description

  1. #1
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Remove Brand and Category from Product Description

    Hi,

    I have a product description in column B and would like to remove any reference to the size or packing (end of description), and Brand (front of description) and Category (usually just before the packing).


    CocoNara Coconut Chocolate 24*60Pcs (Brand: CocoNara)
    Coco Nara Coconut Chocolate 18/96Pcs (Brand: Coco Nara)
    Coco Nara Aya Coconut Chocolate 18/96Pcs (Brand: Coco Nara Aya)

    I have figured out how to remove the size/packing by FINDing spaces in the description (Columns D through I) and category (Chocolate) separate data column.

    Column N: Brand - 1st row: CocoNara 2nd row: Coco Nara 3rd row: Coco Nara Aya
    Formula: =IF(B2="Chocolate",IF(ISNUMBER(FIND("Coconut",A2)),LEFT(A2,FIND("Coconut",A2)-2),"N"))

    Column O: Category - all 3 rows: Chocolate
    No Formula:

    Column P: Removes the size/packing - Results: 1st row: Coconut Chocolate 2nd row: Nara Coconut Chocolate 3rd row: Nara Aya Coconut Chocolate
    Formula: =IF(D2=5,MID(A2,E2+1,I2-E2-1),IF(D2=4,MID(A2,E2+1,H2-E2-1),IF(D2=3,MID(A2,E2+1,G2-E2-1),IF(D2=2,MID(A2,E2+1,F2-E2-1),MID(A2,E2+1,LEN(A2)-E2)))))
    Problem starts here, but why?

    Column Q: Finds Sub Category - Results: 1st row Coconut 2nd row: Nara Coconut 3rd row: Nara Aya Coconut
    Formula: =IF(O2="Chocolate",TRIM(SUBSTITUTE(TRIM(SUBSTITUTE(P2,N2,"")),"Chocolate","")),P2)
    Above formula works fine if the Brand is a single word, but if the Brand has 2 or more words, the result in Column Q does not work.
    I tried substituting the "N2" in the formula with the actual brand name and still did not work. I tried to not use TRIM() and still did not work. I have run out of ideas.

    Any help is appreciated, I have attached the worksheet.

    Warmest regards
    RJ
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Remove Brand and Category from Product Description

    Does this do what you want?
    Attached Files Attached Files
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Remove Brand and Category from Product Description

    Use this formula in Q2 and fill down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: Remove Brand and Category from Product Description

    Hi Nigel,

    So simple and efficient formula. Thank you very much. It seems I was trying to eat the cake going behind my head, LOL

    Only adjustment I made was to add TRIM to the formula to eliminated a space in the first position of the cell.

    Again thank you for all your help.

    RJ

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Produce Product list by product category
    By barnowl in forum Excel General
    Replies: 2
    Last Post: 01-03-2013, 05:57 PM
  2. Description to category
    By lapoz78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2012, 10:45 AM
  3. Replies: 2
    Last Post: 09-14-2012, 04:31 AM
  4. [SOLVED] Rank by Brand by Product
    By som3on3_10 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-01-2012, 04:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1