+ Reply to Thread
Results 1 to 5 of 5

Most frequently occuring text including empy cells

  1. #1
    Registered User
    Join Date
    02-09-2020
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Most frequently occuring text including empy cells

    Hello everyone!

    So I am making an excel file to track the books I've read and calculate some statistics about it.
    One of the stats I want Excel to calculate is most read author. For this problem, I've found the following formula:

    =INDEX(Range;MODE(MATCH(Range;Range;0)))

    This formula works perfectly if the range covers al the cells currently in use. In the example file this would be

    =INDEX(B2:B14;MODE(MATCH(B2:B14;B2:B14;0)))

    However, I want to keep adding books I've read during the year. So I want it to compute the most frequently used text in a bigger range of cells I can use for future books, for example:

    =INDEX(B2:B150;MODE(MATCH(B2:B150;B2:B150;0)))

    This is where the problem starts. When there is one or more empty cells in the range, it returns a #N/A error.

    Is there any way I can make this formula work without having to change the range every time I add a new book? I was thinking maybe there is a way to set the range to B2:'the furthest non-empty cell within collumn B', but I don't know if that is possible. Maybe a totally different formula is required.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Jaaolbs; 02-09-2020 at 10:37 AM.

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Most frequently occuring text including empy cells

    Array formula
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-09-2020
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Re: Most frequently occuring text including empy cells

    This still returns the same error for me.

  4. #4
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Most frequently occuring text including empy cells

    Quote Originally Posted by BMV View Post
    Array formula
    Ctrl+Shift+Enter
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-09-2020
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    3

    Re: Most frequently occuring text including empy cells

    Thanks! I have no idea why it works, but it does.

+ 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: 12
    Last Post: 01-08-2020, 01:02 PM
  2. Replies: 6
    Last Post: 12-04-2019, 10:40 AM
  3. Most Frequently Occuring Text
    By Shanie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-25-2015, 12:08 PM
  4. most frequently occuring set
    By apok9f in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-25-2013, 04:29 AM
  5. Macro or formula to find the 2 most frequently occuring numbers[SOLVED]
    By flexalong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2011, 04:34 PM
  6. [SOLVED] Extracting the most frequently occuring text from a range
    By Phil in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2006, 08:45 AM
  7. Extracting the most frequently occuring text from a range
    By Phil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-08-2006, 10:51 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