+ Reply to Thread
Results 1 to 3 of 3

Index, Mode & Match Problem?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34

    Exclamation Index, Mode & Match Problem?

    I have a column of text values which the below formula is evaluating and is then returning the most frequent text value.

    =INDEX(A:A,MODE(MATCH(A:A&"",A:A&"",0)))

    It works fine when the specified array includes text values, my problem is i am adding to the text values daily and would prefer not to have to adjust the array of the formula each time!

    When i specify a larger array (ie. A3:A1000) it returns "0".

    Is there any way to combat this?


    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Try this "array formula"

    =INDEX(A3:A1000,MODE(IF(A3:A1000<>"",MATCH(A3:A1000,A3:A1000,0))))

    needs to be confirmed with CTRL+SHIFT+ENTER so that curly braces like { and } appear around the formula in the formula bar

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    Works perfectly!!

    Thanks very much!

+ 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