• Spreadsheet help…calculating totals based on a date

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Spreadsheet help…calculating totals based on a date

    Author
    Topic
    #499579

    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]

    Viewing 2 reply threads
    Author
    Replies
    • #1500805

      One way: =SUMPRODUCT(ISBLANK(C3:C9)*B3:B9) and adjust the range accordingly.

      Another option: =SUMIF(C3:C9,””,B3:B9)

      • #1500808

        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.

    • #1500807

      KW,

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

    • #1500855

      As Maud said, sumif should do the job for simpler ones and is less resource intensive.

    Viewing 2 reply threads
    Reply To: Spreadsheet help…calculating totals based on a date

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: