+ Reply to Thread
Results 1 to 2 of 2

Adding up a column based on two Criteria's in a row

  1. #1
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Adding up a column based on two Criteria's in a row

    chq# Department Amount Month
    1 Accounts £100 Jan
    2 Post £189 Feb
    3 Accounts £105 Jan

    I want to be able to sum the "amount" column based on the "department" being "Accounts" and "Month" being "Jan".

    How can I do it please, many thanks for you anticipated help.


    David

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Assumes Jan is text and not a date

    =SUMPRODUCT(--(B2:B400="Accounts")*(D2:D400="Jan")*(C2:C400))
    Note Change range to your range

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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