+ Reply to Thread
Results 1 to 5 of 5

Return most common text string for a certain outcode

  1. #1
    Registered User
    Join Date
    06-29-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Smile Return most common text string for a certain outcode

    Hey guys (new to this forum)

    I'm analysing UK restaurants by out-code. I want to see what the most popular type of restaurant is in a certain out-code. My table looks like this:

    AB10 1BA British
    AB10 1JG Mexican
    AB10 1JR Indian
    AB10 1JR Kebab
    AB10 1SB Indian
    AB10 1SQ Kebab
    AB10 1TE Sushi
    AB10 1TX Thai
    AB10 1TX Kebab
    AB10 6BR Italian
    AB10 6BS Indian
    AB10 6DA Chinese
    AB10 6DB Italian
    AB10 6NN Italian
    AB10 6QD Indian
    AB10 7AP Indian
    AB10 7LH Chinese
    AB11 5BL Hungarian
    AB11 5NX Fish & Chips
    AB11 6BB Indian
    AB11 6BT Indian

    Outcode in column A, next bit of postcode in column B and the food type in column C

    I would like Excel to return the most common Food type for the out-code AB10, AB11 and so on...

    I've tried using Index Match but to no avail so far

    Any help would be greatly appreciated!

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

    Re: Return most common text string for a certain outcode

    Pivot table probably best

    COUNT column C by column A
    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
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return most common text string for a certain outcode

    With a pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    06-29-2015
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    2

    Re: Return most common text string for a certain outcode

    Thanks guys!

    I always try formulas. Sometime the simple ways are the best ways.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return most common text string for a certain outcode

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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: 2
    Last Post: 05-14-2015, 01:30 PM
  2. [SOLVED] Search for a text string and return given text string to adjacent cell
    By hecgroups in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2015, 04:50 AM
  3. Formula that displays most common text string in column
    By cinque in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 10:06 PM
  4. [SOLVED] VBA to search cell containing specific text and return common value
    By hate0lif3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2014, 09:41 AM
  5. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 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