+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT with ID numbers that has minus signs and using time as an array...

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    Excellers,

    How may I write two formulas with SUMPRODUCT below?

    ID Start Time End Time
    13-01294-001 5:00 7:00
    13-01294-002 12:00 1:00

    After the SUMPRODUCT is calculated, the result should show 3:00 (3 hours).

    I know there is a simple way to write this... but I do not know how!

    Attached is a sample workbook to play around with.
    SampleHelp.xlsx

    Many thanks!!

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    Given you've already provided the helper columns, you might try this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    ConneXionLost,

    The SUMIF formula you gave works just fine, but I want to use the A column instead of B... I just have the B column as a sample to compare the data to see if it comes out correctly.

    Just use columns A, C and D as stated in the sample workbook attached in the first post above.

    Thanks for your willingness to help!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    Hi,

    I think you're over complicating this. Neither SUMPRODUCT() nor the more efficient SUMIFS() which effectively replaced it when 2007 was introduced are needed.

    Your current 'hours' column is actually holding time numbers, i.e. a decimal of 24 hours.

    In E2 enter the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy this down.

    Now you can use a simple SUMIF()
    i.e.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and importantly format this cell as
    [h]:mm
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    Richard,

    This provides clearer solution and right on the point.

    However, as you said, I was over-complicating this. I have simplified the workbook to what exactly what I want to use. I want to do a kind of SUM (SUM, SUMIF, SUMIFS, SUMPRODUCT- whichever is the best) for both 13-01294* and 13-00842*.

    Attached is the revised workbook.
    SampleHelpV1.xlsx

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMPRODUCT with ID numbers that has minus signs and using time as an array...

    Hi,

    See attached
    Attached Files Attached Files

+ 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. Conditional Conditioning Minus signs
    By okopo in forum Excel General
    Replies: 4
    Last Post: 03-22-2012, 05:48 AM
  2. Treating plus and minus signs as text
    By Ross Langmead in forum Excel General
    Replies: 1
    Last Post: 09-30-2009, 03:59 AM
  3. Minus signs after number
    By Crowbar via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2006, 11:20 AM
  4. MINUS SIGNS REMOVAL
    By Rebecca in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-23-2005, 08:10 PM
  5. Replies: 0
    Last Post: 08-23-2005, 03:59 AM

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