+ Reply to Thread
Results 1 to 4 of 4

Frequency Formula for Greatest Occurrence by Date

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    ATL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Frequency Formula for Greatest Occurrence by Date

    Have 2 columns of data - salesman# and date of sale.
    In column 3 need to identify the salesman# that had the most sales for that date.
    Would prefer that the salesman# be identified only once for the date that the salesman# had the most sales
    (similar to the third column of the example) and have all other column cells blank for that date so the data can be pivoted.

    Salesman# Date of Sale Most Sales per Date
    Salesman 1 1/1/2013 Salesman 2
    Salesman 1 1/1/2013
    Salesman 2 1/1/2013
    Salesman 2 1/1/2013
    Salesman 2 1/1/2013
    Salesman 2 1/1/2013
    Salesman 3 1/2/2013 Salesman 3
    Salesman 3 1/2/2013
    Salesman 1 1/2/2013
    Salesman 3 1/2/2013
    Salesman 1 1/3/2013 Salesman 2
    Salesman 2 1/3/2013
    Salesman 2 1/3/2013
    Salesman 2 1/3/2013
    Salesman 3 1/3/2013

    Have tried the following but it keeps returning all salesmen:
    =IF(COUNTIFS($A$2:A2,A2,$B$2:B2,B2)=MAX(FREQUENCY(IF($A$2:$A$16<>"",IF($B$2:$B$16=B2,MATCH($A$2:$A$16,$A$2:$A$16,0))),ROW($A$2:$A$8)-ROW($A$2)+1)),A2,"")

    Any help/guidance is appreciated.

    Rick

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Frequency Formula for Greatest Occurrence by Date

    Hi,

    Try this array formula:

    =IF(ROWS($A$2:$A2)=MATCH(C2,$C$2:$C$16,0),INDEX($A$2:$A$16,MATCH(MAX(SUMIFS($B$2:$B$16,$C$2:$C$16,C2,$A$2:$A$16,$A$2:$A$16)),SUMIFS($B$2:$B$16,$C$2:$C$16,C2,$A$2:$A$16,$A$2:$A$16),0)),"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-02-2013
    Location
    ATL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Frequency Formula for Greatest Occurrence by Date

    Appeciate the effort XOR LX. Am getting a circular reference when the formula is setup in column C.

    Regards,
    Ron

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Frequency Formula for Greatest Occurrence by Date

    Hi and welcome to the forum

    try to put it in another column, 1 that isnt used in that formula

    the circ ref is probably because C is referenced within that formula...MATCH(C2,$C$2:$C$16,0
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Percentage Occurrence (Possibly Frequency function)
    By adrem7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2013, 06:33 PM
  2. Sort by frequency of occurrence
    By Lifeseeker in forum Excel General
    Replies: 2
    Last Post: 11-02-2011, 05:54 PM
  3. Frequency Due Date Formula
    By ainokoori in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2011, 12:58 PM
  4. Frequency of occurrence
    By Lindsay123 in forum Excel General
    Replies: 3
    Last Post: 06-21-2005, 07:05 PM
  5. Can I sort numerically by frequency of occurrence?
    By bowfever in forum Excel General
    Replies: 2
    Last Post: 04-21-2005, 11:02 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