+ Reply to Thread
Results 1 to 7 of 7

Sum base on several conditions

  1. #1
    Registered User
    Join Date
    05-24-2014
    Location
    Bratislava, Slovakia
    MS-Off Ver
    2007
    Posts
    11

    Sum base on several conditions

    Hello

    I need to sum data base on three conditions:
    1. account nr.
    2. date
    3. "credit" or "debit"

    This formula doesn't works: =SUM(($A$2:$A$22=$G$4)*($B$2:$B$22=$G$2)*($D$2:$D$22=G6))

    I attached file.

    Thankssum.xlsx

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Sum base on several conditions

    In G7 enter =SUMPRODUCT(--($A$2:$A$22=G4),--($B$2:$B$22=G2),--($D$2:$D$22=G6)) and drag to left under Credit

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: Sum base on several conditions

    F7:
    Please Login or Register  to view this content.
    g7:
    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    05-24-2014
    Location
    Bratislava, Slovakia
    MS-Off Ver
    2007
    Posts
    11

    Re: Sum base on several conditions

    Hi, it shows me only counted - Credit.. I need to sum data.

  5. #5
    Registered User
    Join Date
    05-24-2014
    Location
    Bratislava, Slovakia
    MS-Off Ver
    2007
    Posts
    11

    Re: Sum base on several conditions

    Thanks, it works

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Sum base on several conditions

    Oh yeah, my bad. F7 =SUMPRODUCT(--($A$2:$A$22=F4),--($B$2:$B$22=F2),--($D$2:$D$22=F6),$C$2:$C$22) then drag to the right.

    I can't remember if 2007 support SUMIFS. If it does, protonLeah's forumla works better.

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: Sum base on several conditions

    Notice the named ranges:
    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. Replies: 5
    Last Post: 11-07-2014, 12:20 PM
  2. Copy paste to different tab base on multiple conditions
    By rnkeller in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2014, 09:41 AM
  3. Replies: 3
    Last Post: 09-17-2012, 11:43 AM
  4. Split a workbook into different workbooks base on conditions
    By gvf in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-25-2012, 06:14 PM
  5. Replies: 5
    Last Post: 11-20-2006, 09:56 PM

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