+ Reply to Thread
Results 1 to 3 of 3

Return most frequently occurring text in row

  1. #1
    Forum Contributor
    Join Date
    04-11-2008
    Posts
    156

    Return most frequently occurring text in row

    Hello,

    Please can you show me how to return the most frequently occurring text in row?

    1) the row may contain blanks
    2) if there is only 1 text entry, I would like that text entry to be considered the most frequent
    3) if there is a draw, I would like the first text entry (from left to right) to be considered the most frequent

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return most frequently occurring text in row

    If the range is say, A1:N1, then try:

    =INDEX(A1:N1,MODE(IF(A1:N1<>"",MATCH(A1:N1,A1:N1,0))))

    confirmed with CTRL+SHIFT+ENTER not just ENTER
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Return most frequently occurring text in row

    Quote Originally Posted by penfold View Post
    if there is only 1 text entry, I would like that text entry to be considered the most frequent
    To satisfy that condition a small tweak to NBVC's suggestion

    =INDEX(A1:N1,MODE(IF(A1:N1<>"",MATCH(A1:N1,A1:N1,0)*{1;1})))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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