+ Reply to Thread
Results 1 to 2 of 2

sumif with criteria

  1. #1
    Tiya
    Guest

    sumif with criteria

    Hi
    I want to use sumif with criteria. I want to make total of code and subcode
    i have data like
    Code Date Item Subcode Amount
    A 25-May-06 Pen 1 30
    A 26-May-06 Ink 1 50
    A 27-May-06 Ball Pen 2 70
    B 28-May-06 Pen 1 90
    B 29-May-06 Ink 1 110
    A 30-May-06 Pen 2 130
    A 31-May-06 Ink 2 150
    B 01-Jun-06 Pen 2 170
    A 02-Jun-06 Ink 1 190
    A 03-Jun-06 Ball Pen 1 210
    B 04-Jun-06 Ink 2 230
    A 05-Jun-06 Ball Pen 2 250

    I want sum for Code A & subcode 1 total 480
    I want sum for Code A & subcode 2 total 600
    I want sum for Code B & subcode 1 total 200
    I want sum for Code B & subcode 2 total 400

    is there any help.

    Thanks
    Tiya

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    Try something along the lines of

    =sumproduct((a2:a20="A")*(d2:d20=1)*(e2:e20))

    changing the A & 1 where appropriate

    Regards

    Dav

+ 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