+ Reply to Thread
Results 1 to 5 of 5

Excel Macro/function For Finding Words From Sentence

  1. #1
    Registered User
    Join Date
    03-24-2015
    Location
    India
    MS-Off Ver
    OpenOffice
    Posts
    7

    Excel Macro/function For Finding Words From Sentence

    I was wondering if someone can help with a vb macro which can save significant time.

    I have a list of more than 5000 products information in excel sheet. I will upload all these product information via bulk upload feature on my online store.

    My problem is assigning categories (sub-categories) to each product. Right now i have to do it manually.

    Understaning

    A1 has this sentence: Gold & Rhodium Plated Cz Earrings Necklace Set

    Category column should be: Jewelry|Jewelry>>Earrings|Jewelry>>Earrings>>Necklace|Jewelry>>Earrings>>Necklace>>Set

    It would be of great help if anyone can help me with macro.

    In my opinion there should be a predefined list of words somewhere (may be different sheet of same file) and macro will prepare category by finding word from the list.

    For example, Jewelry: earrings,necklace,set,rings,bracelet

    If script finds 'rings' in sentence then it will prepare category like this 'Jewelry|Jewelry>>rings'

  2. #2
    Registered User
    Join Date
    03-24-2015
    Location
    India
    MS-Off Ver
    OpenOffice
    Posts
    7

    Re: Excel Macro/function For Finding Words From Sentence

    is this not possible?

  3. #3
    Registered User
    Join Date
    05-01-2006
    Location
    OH
    MS-Off Ver
    Excel 2013
    Posts
    41

    Re: Excel Macro/function For Finding Words From Sentence

    Here's something crude I made. It works, but I think array formulas would be more elegant here. I've implemented array formulas before, but I'm not fluent enough to do this in the same amount of time I did what's attached. It would probably take even less time in more capable array formula hands, but not mine at this time. This will get you by in case no one else replies.

    mateeben - finding words in sentence 3-24-15.xlsx

  4. #4
    Registered User
    Join Date
    03-24-2015
    Location
    India
    MS-Off Ver
    OpenOffice
    Posts
    7

    Re: Excel Macro/function For Finding Words From Sentence

    @elprup: extremely thanks. However, i am not able to download the file (it is asking me to login even if i am already logged in), probably because i became member yesterday.

    Could you please use any file hosting.

    Thanks

  5. #5
    Registered User
    Join Date
    03-24-2015
    Location
    India
    MS-Off Ver
    OpenOffice
    Posts
    7

    Re: Excel Macro/function For Finding Words From Sentence

    This is confusing. i can't download file from this thread. But i can download file posted in this thread: http://www.excelforum.com/excel-prog...-3-things.html

+ 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. [SOLVED] Removing 'stop words' from a sentence in excel
    By shashankbansal in forum Excel General
    Replies: 8
    Last Post: 06-20-2016, 11:32 PM
  2. Help! Count how many words in a sentence match a dictionary of words
    By sonyaelis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2013, 05:31 AM
  3. Replies: 17
    Last Post: 02-13-2012, 09:45 AM
  4. words matching in sentence
    By sailesh9630 in forum Excel General
    Replies: 8
    Last Post: 06-22-2011, 11:19 AM
  5. Replies: 2
    Last Post: 05-18-2010, 07:55 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