+ Reply to Thread
Results 1 to 10 of 10

SUMPRODUCT includes comparison of date ranges in two columns and equating it to a constant

Hybrid View

raj_excel SUMPRODUCT includes... 11-07-2012, 12:02 AM
Sindhus Re: SUMPRODUCT includes... 11-07-2012, 12:19 AM
raj_excel Re: SUMPRODUCT includes... 11-07-2012, 01:32 AM
Sindhus Re: SUMPRODUCT includes... 11-07-2012, 01:35 AM
raj_excel Re: SUMPRODUCT includes... 11-07-2012, 01:47 AM
  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    SUMPRODUCT includes comparison of date ranges in two columns and equating it to a constant

    Hi friends
    I have weird situation in hand..
    I have 3 columns,
    A B C
    10/25/2012 0:00 10/25/2012 0:00 1 - Urgent
    11/5/2012 0:00 11/8/2012 0:00 4 - Medium
    10/23/2012 0:00 4 - Medium
    10/25/2012 0:00 3 - High
    10/25/2012 0:00 4 - Medium

    I have this formula to calculate for A = B and it is fine. The result is 1,
    =SUMPRODUCT(--(O:O=J:J),--(O:O<>0),--(G:G="1 - Urgent"))

    But I cant modify this to find B - A = 8
    i.e I tried this,
    =SUMPRODUCT(--(O:O="J:J+3"))--(O:O<>0)--(G:G="1 - Urgent") this doesnt work

    Please can you help ?

    Appreciate it. Thank you

  2. #2
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: SUMPRODUCT includes comparison of date ranges in two columns and equating it to a cons

    Try
    Formula: copy to clipboard
    =sumproduct(--((O:O-J:J)=8),--(O:O<>0),--(G:G="1 - Urgent"))

  3. #3
    Registered User
    Join Date
    11-06-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: SUMPRODUCT includes comparison of date ranges in two columns and equating it to a cons

    Sorry
    Had played around with that.

    Gets my a #Value error.

    But thanks

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: SUMPRODUCT includes comparison of date ranges in two columns and equating it to a cons

    Can you upload your excel with expected output?

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: SUMPRODUCT includes comparison of date ranges in two columns and equating it to a cons

    sumproduct.xlsx

    Sure. PFA.
    TY

  6. #6
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: SUMPRODUCT includes comparison of date ranges in two columns and equating it to a cons

    Try this formula. I am getting 1 for this in your sheet.
    Formula: copy to clipboard
    =SUMPRODUCT(--((B2:B6-A2:A6)=3),--(B2:B6<>0),--(C2:C6="1 - Urgent"))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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