+ Reply to Thread
Results 1 to 5 of 5

Merging Sumproduct and Frequency Formulas/Functions

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Merging Sumproduct and Frequency Formulas/Functions

    Hi everyone,

    I have a frequency formula in an array:

    =SUM(IF(FREQUENCY(IF(LEN(Data!K488:K520)>0,MATCH(Data!K488:K520,Data!K488:K520,0),""), IF(LEN(Data!K488:K520)>0,MATCH(Data!K488:K520,Data!K488:K520,0),""))>0,1))

    And I have a column J that has corresponding dates beside column K. I would like to have the formula spit out a value that is based on a customizable date range. That is, expand K488 and K520 (say K5 to K 600) and have a sumproduct or some other formula which makes the array look at column J and 2 dates in 2 other cells, so that it is customizable for that date range.

    If I wasn't clear, please let me know. Any help is greatly appreciated.

    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: Merging Sumproduct and Frequency Formulas/Functions

    Assuming your formula is in Sheet3,

    First assuming you enter your desired start and end row numbers for the range in X1 and X2 of Sheet3, then in the Data sheet, go to Insert|Name|Define and enter a name like: Data and then enter a formula in the Refers to box:

    =INDEX(Data!$A:$A,Sheet3!$X$1):INDEX(Data!$L:$L,Sheet3!$X$2)

    which assumes the columns in the database are from column A to column L, you can adjust those...

    then in sheet3, assuming the start and end dates would be in Z1 and Z2 use formula:

    =SUM(IF(FREQUENCY(IF((LEN(INDEX(Data,0,11))>0)*(INDEX(Data,0,10)>=Z1)*(INDEX(Data,0,10)<=Z2),MATCH(INDEX(Data,0,11),INDEX(Data,0,11),0),""), IF((LEN(INDEX(Data,0,11))>0)*(INDEX(Data,0,10)>=Z1)*(INDEX(Data,0,10)<=Z2),MATCH(INDEX(Data,0,11),INDEX(Data,0,11),0),""))>0,1))
    CSE confirmed
    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
    Registered User
    Join Date
    02-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Merging Sumproduct and Frequency Formulas/Functions

    Perfect,

    Much appreciated, thanks!

  4. #4
    Registered User
    Join Date
    02-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Merging Sumproduct and Frequency Formulas/Functions

    douple post... sorry
    Last edited by mrgreek; 06-22-2012 at 01:12 PM.

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

    Re: Merging Sumproduct and Frequency Formulas/Functions

    You are welcome.

    Please try to remember to mark your thread as SOLVED once satisfied.

+ 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