+ Reply to Thread
Results 1 to 7 of 7

How to look up the most often occuring word within a date range?

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    How to look up the most often occuring word within a date range?

    I'm trying to create a 'Daily Stats' sheet on excel. On my 'Original Data' sheet - Column A will have a list of dates and corresponding data alongside this

    Eg. :

    09/02/2016 Apples
    09/02/2016 Bananas
    09/02/2016 Grapes
    09/02/2016 Apples
    10/02/2016 Bananas
    10/02/2016 Bananas
    11/02/2016 Grapes

    On the Daily Stats sheet, I want to be able to write a date in cell A1 (eg. 09/02/2016) and it will tell me what the most frequently occuring word is for this date in column B of the Original data sheet. So if I enter 09/02/2016, the result would be Bananas as this is the most frequently occuring word within that date range. However, I want this to work so that it's a variable range? - So I don't have to say, look at A1:A4, just look in column A for this date. Does that make any sense whatsoever? :(

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,368

    Re: How to look up the most often occuring word within a date range?

    Hi kellyfirth,

    I think you are asking for a Dynamic Named Range to deal with the "Variable Range" problem. See:
    http://www.ozgrid.com/Excel/DynamicRanges.htm or
    http://www.jkp-ads.com/articles/ExcelNames07.asp

    See my example on how I'd do this problem. What if you have a new fruit? It is hard to deal with that without a Pivot. What if the names of the fruit or dates change. See the attached and give it a try.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to look up the most often occuring word within a date range?

    Or try these
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    where B3:C9 is yor data and G3 the date

    see the file Sample (6).xlsx

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to look up the most often occuring word within a date range?

    Maybe this...

    Data Range
    A
    B
    C
    D
    E
    1
    9/2/2016
    Apples
    ------
    9/2/2016
    Apples
    2
    9/2/2016
    Bananas
    3
    9/2/2016
    Grapes
    4
    9/2/2016
    Apples
    5
    10/2/2016
    Bananas
    6
    10/2/2016
    Bananas
    7
    11/2/2016
    Grapes
    8
    9
    10


    This array formula** entered in E1:

    =INDEX(B1:B10,MODE(IF(A1:A10<>"",IF(A1:A10=D1,MATCH(B1:B10,B1:B10,0)))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Assumes that the most occurring entry will appear more than once. If not the formula will return an error.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to look up the most often occuring word within a date range?

    Hi kellyfirth,
    In post #3 I forgot to say that it was a formula array.
    Tony Valko presents a better formula.

  6. #6
    Registered User
    Join Date
    11-25-2014
    Location
    Isle of Man
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    82

    Re: How to look up the most often occuring word within a date range?

    Great, thank you! I've used Tony Valko's formula as this seems easiest to follow but thank you all for suggestions

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How to look up the most often occuring word within a date range?

    You're welcome. Thanks for the feedback!

+ 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: 1
    Last Post: 01-14-2016, 01:29 PM
  2. [SOLVED] Count cells within a specific date range that contain a specific word
    By oneillp1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-23-2014, 08:34 AM
  3. [SOLVED] Sum of numbers occuring on a specific date
    By mem_aryan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2014, 08:40 AM
  4. Adding number of times word appears in date range across multiple sheets
    By ashbeeigh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2013, 01:49 PM
  5. Excel 2007 : Conditional Formatting- A Date Occuring...
    By needyohelp in forum Excel General
    Replies: 1
    Last Post: 03-19-2012, 01:55 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. [SOLVED] 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

Tags for this Thread

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