+ Reply to Thread
Results 1 to 4 of 4

Sumif in 3 rows

  1. #1
    Registered User
    Join Date
    12-01-2008
    Location
    Mlebourne, Australia
    Posts
    2

    Sumif in 3 rows

    Hi,

    Please help with an excel formular.
    I am wanting to return the sum of values that meet 2 critera, and return that value only. So i have in col A i have the date by month, in col K i have the department code, and in col I i have the amount.

    I am trying to set up a running sheet by month that gives me the value each department spent in a particular month and have used the following formular: =IF(AND(SUMIF($K$7:$K$59,$B4,$I$7:$I$59),(SUMIF($A$7:$A$59,C$3,$I$7:$I$59))),(SUMIF($K$7:$K$59,$B4,$I$7:$I$59)),0) with B4 being the department code and C3 being the date.

    This formular works untill the department has an expense in 2 months, the it adds the expense in both months.

    Any assistance would be greatly appricated.

    Cheers

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try Sumproduct:

    e.g

    =SUMPRODUCT(($K$7:$K$59=$B4)*($A$7:$A$59=C$3),$I$7:$I$59)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-01-2008
    Location
    Mlebourne, Australia
    Posts
    2
    Thank you for your suggestion, however it does not seem to return any value at all nor does it return an error. Do you think it is missing something??

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    My formula will sum numbers in I7 to I59 where corresponding items K7:K59 = B4 and A7:A59 = C3.

    Is that not what you were looking for?

+ 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