+ Reply to Thread
Results 1 to 5 of 5

Find most frequent word in column b associated with a certain value in column a

  1. #1
    Registered User
    Join Date
    07-24-2019
    Location
    Valencia
    MS-Off Ver
    2010
    Posts
    2

    Find most frequent word in column b associated with a certain value in column a

    Hi,

    It's my first time using this forum and I have to admit I don't know much about excel.

    So I have a list of parks in a column and a list of countries in another column.

    An example would be:

    Column A Column B
    Central Park Spain
    Central Park Spain
    Banff Park Italy
    Central Park Italy
    Central Park


    I'm trying to find which country is associated the most with Central Park, the answer would be spain

    I have blank cells in the column of country so the result I get is #N/A.
    The formula I used was =INDEX(B1:B5;MODE(IF(A1:A5="Central Park";EQUIV(B1:B5;B1:B5;0))))

    I've done the opposite and it worked.


    Thank you
    Last edited by TheExcelNoob; 07-24-2019 at 12:38 PM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Find most frequent word in column b associated with a certain value in column a

    Not saying I'll answer this but I doubt anyone wants to retype that data as small as it is, so it's deiffficult to test any given solution.

    Post a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-24-2019
    Location
    Valencia
    MS-Off Ver
    2010
    Posts
    2

    Re: Find most frequent word in column b associated with a certain value in column a

    I've edited it, didn't know it was going to show like that, it was different when I clicked on preview. I hope it's a bit clearer.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: Find most frequent word in column b associated with a certain value in column a

    You were asked to post a sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Find most frequent word in column b associated with a certain value in column a

    See AliGW's reply first since she is a Forum Moderator.

    Then consider,

    What happens if there were 2 Central Parks for Spain and 2 Central Parks for Italy?
    You'd obviously expect Spain and Italy to be output but in what format, Spain and Italy in one cell? Or a list saying

    Spain
    Italy

    Or something else?
    Last edited by Special-K; 07-25-2019 at 05:01 AM.

+ 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] Find a Word in a Column and Delete the Rest of the Column
    By KColgrove in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2019, 06:42 PM
  2. Replies: 2
    Last Post: 09-08-2017, 02:14 AM
  3. [SOLVED] Excel VBA Macro - Find Word and Select that Column to Column D and copy
    By MsBBStacker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2015, 12:04 AM
  4. Find 1st unique Value on Column and Insert certain Word on cell on left Column
    By Wldlife23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2013, 10:02 AM
  5. Find Most Frequent Word
    By Osensnolf in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-10-2013, 12:19 PM
  6. VBA to enter a word, find said word in string of column & copy to another column
    By tuneloon in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-29-2012, 11:59 AM
  7. Replies: 3
    Last Post: 03-20-2012, 09:53 PM

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