+ Reply to Thread
Results 1 to 8 of 8

Keyword Categorising

  1. #1
    Registered User
    Join Date
    04-25-2007
    Posts
    28

    Keyword Categorising

    Hi guys,
    I hope you're all good!

    I'm trying desperately to achieve something in Excel, but really struggling!

    If you take a look at the data attached there is a column 'Label'. What I want to do is pick the most popular single word from Column B within the same series of Column H and put the output in Column I. So for example, for row 2-63 (the same Modularity Class) Column I could be 'planner' as that's the most popular word in Column B.

    Make sense? I hope so, I'm stuck!

    Thanks all!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Keyword Categorising

    This may be close to what you are looking for:

    Please Login or Register  to view this content.
    Confirm with CTRL+SHIFT+ENTER

    However, mine formula searches for whole phrases, not just single words, which would complicate things. For example, the first returned phrase is "meal planner" for modularity class 0. Then for modularity class 1, there is no mode, since none of the phrases are repeated, so an N/A is returned.

    I know this isn't exactly what you are looking for, but perhaps a start.

    Hope this helps.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Keyword Categorising

    first you need to apply a feature: text to columns
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-25-2007
    Posts
    28

    Re: Keyword Categorising

    Hi
    Thanks for the starter formula! I think it kind of works. The issue I'm having is that that column I goes up to 1000. So I need a formula that takes into account the increase in numbers. Do you think this is possible?

  5. #5
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Keyword Categorising

    When you say column I goes "up to 1000", what does that mean exactly? Does that mean that there are a range of 0-1000 Modularity Classes? Because if that is the case, you will be fine, since as you drag the formula down, it will look for the next most common phrase within the next Modularity Class. This is made certain by the ROW(B3)-1 portion of the formula, since it will give you an incremental increase in which Modularity Class to pull from, starting with 0.

  6. #6
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Keyword Categorising

    it's just one array formula, it can work with 1 000 000 rows

  7. #7
    Registered User
    Join Date
    04-25-2007
    Posts
    28

    Re: Keyword Categorising

    Hi,
    When I say 1000s, I mean there are up to 100 rows with modularity class of 0. Then up to another 100 with 1, then another 100 with 2 and so on. Each modularity class represents a group, which I need to define the keyword for.

    Do you mind explaining how I can use that formula for the entire column? I've tried copy and paste all the way down, but it doesnt seem to work.

    Thanks!

  8. #8
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Keyword Categorising

    I'll assume that you're acknowledging my previous posts in this message; if not, then disregard. The only thing in the formula that will need to be altered is the actual cell ranges for all the references. You could use column referencing (B:B, H:H, ect.), but it would take up more processing power.

    Other than that, the formula does not need to be altered for each modularity class. This is because the formula is looking through the entirety of data in column I, and saying give me the most common phrase used, but only if column H contains "0" (this is for cell I2). Then once you drag the formula down one cell, it repeats the same process, but for modularity class 1. The reason it returns an #N/A is because there are no phrases that are entirely repeated within column I for modularity class 1.

    Hope that was clear enough.

+ 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. Replies: 6
    Last Post: 03-18-2014, 11:16 AM
  2. Filter List by Keyword & copy the result in column by keyword as header
    By kitunga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2013, 07:16 AM
  3. [SOLVED] Need to chck if a keyword is present in a text string and return keyword if yes
    By Jekaterina in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-16-2012, 05:55 PM
  4. Replies: 2
    Last Post: 07-13-2012, 04:02 AM
  5. Replies: 1
    Last Post: 12-27-2010, 08:53 AM

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