+ Reply to Thread
Results 1 to 4 of 4

Double If Count

  1. #1
    Registered User
    Join Date
    06-13-2005
    Posts
    43

    Double If Count

    Good morning everyone

    Just for a little question here

    I have a worksheet of raw data here.
    I have a few formulas i need to calculate using 2 criterias.
    I beleive the formulas will all be very similar.

    2 worksheets
    * Data
    * Report


    Forumula 1)
    I am trying to count the total transactions that meet both criteria

    Count
    If DATA Culumn D = REPORT Column A
    and
    If DATA Culumn B = "IN"

    Forumula 2)
    Find the Max time duration in DATA Column G with both criteria being met.

    Forumula 2)
    Find the Average time duration in DATA Column G with both criteria being met.

    Thank you in advance for your help.

    Warren

  2. #2
    Registered User
    Join Date
    06-13-2005
    Posts
    43

    Re: Double If Count

    Im no good at the sumproduct feature

    Is this correct for formula 1

    =SUMPRODUCT((Data!D1:D65000=Report!$A$2)+(Data!B1:B65000="inbound"))
    Thanks

    I have no idea wbout Furmula 2 and 3 tho.
    Last edited by XCESIV; 08-30-2009 at 07:18 PM.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Double If Count

    for count
    =SUMPRODUCT(--(report!A1:A10=data!D1:D10),--(B1:B10="in"))
    for max
    =MAX((report!A1:A10=data!D1:D10)*(data!B1:B10="in")*(data!G1:G10))
    array entered with ctrl+shift+enter
    see link in my sig how to enter arrays
    for average
    =SUMPRODUCT(--(report!A1:A10=data!D1:D10),--(data!B1:B10="in"),(data!G1:G10))/SUMPRODUCT(--(report!A1:A10=data!D1:D10),--(data!B1:B10="in"))
    Last edited by martindwilson; 08-30-2009 at 07:41 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Double If Count

    Without knowing exactly what the report range values are in A1:A10 etc it might make sense to use a Pivot Table ?

    Column B as PAGE Field
    Column D as ROW Field
    Set Time Duration as DATA Field twice - once set to MAX and the other to AVERAGE.

    This will be a more effective approach going forward.
    Last edited by DonkeyOte; 08-31-2009 at 01:51 AM.

+ 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