Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Dec 2009
    Location
    West Seneca, NY
    Posts
    150
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Spreadsheet help...calculating totals based on a date

    I should know this but I seem to be drawing a blank. I have a column of numbers in Col B (quantity of items for instance). Next to each cell in Col C, I have, say a date when those numbers in the adjacent cell are used. I want to add those quantities remaining that have not been used(in this case 10) and put that total in cell C1 (where question mark is). In other words what is left of the total not used. This list could get very long, perhaps in the 300 to 500 lines long. So I need something "elegant".
    Anybody want to try and take a stab at this? note: Col A is nothing more than an identifier and will most likely have peoples names in it. FWIW I'm using Google Sheets
    Example:[IMG][/IMG]

  2. #2
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    La Jolla, CA
    Posts
    1,470
    Thanks
    30
    Thanked 62 Times in 58 Posts
    One way: =SUMPRODUCT(ISBLANK(C3:C9)*B3:B9) and adjust the range accordingly.

    Another option: =SUMIF(C3:C9,"",B3:B9)
    Last edited by kweaver; 2015-04-20 at 19:07.

  3. #3
    Gold Lounger Maudibe's Avatar
    Join Date
    Aug 2010
    Location
    Pa, USA
    Posts
    2,637
    Thanks
    115
    Thanked 650 Times in 592 Posts
    KW,

    Your SUMIF formula is about as elegant as it can get!

  4. #4
    2 Star Lounger
    Join Date
    Dec 2009
    Location
    West Seneca, NY
    Posts
    150
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks,

    kweaver that first example does what I need.

    Well, actually either one does the job. The second one I had trouble with. But I guess that my typing skills need help. Stupid mis-types can cause lots of problems. Thanks again.
    Last edited by Norm201; 2015-04-20 at 19:55.

  5. #5
    3 Star Lounger Supershoe's Avatar
    Join Date
    Apr 2014
    Location
    Austin, TX
    Posts
    252
    Thanks
    1
    Thanked 36 Times in 34 Posts
    As Maud said, sumif should do the job for simpler ones and is less resource intensive.
    Don Guillett
    Excel Developer
    dguillett @gmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •