+ Reply to Thread
Results 1 to 4 of 4

SUMIF Problem

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    SUMIF Problem

    Hi,

    I am currently using the formula =SUMIF($B$4:$B$20,"XP Project",H$4:H$20) which adds up all the totals in column 'H' (H4:H20) which are flagged "XP Project in Column 'B' (B4:B20).

    What I would like to do is to add another criteria to this formula so it would also look in Column A for a name i.e. Bob Guy so the result would be :-

    Sum totals in 'H' (H4:H20) where "XP Project" is flagged in Column 'B' (B4:B20) and "Bob Guy" is flagged in Column 'A' (A4:A20)

    I would be most grateful for any assistance of the correct syntax of this formula

    Many thanks in advance


    Bob - Excel version 2003
    Last edited by VBA Noob; 10-12-2007 at 05:59 AM.
    Rob

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,738
    If you're not using Excel 2007 then SUMPRODUCT is your best bet for multi-conditional counting or summing i.e.

    =SUMPRODUCT(--($B$4:$B$20="XP Project"),--($A$4:$A$20="Bob Guy"),H$4:H$20)

  3. #3
    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
    Maybe

    =SUMPRODUCT(--(H4:H20="XP Project")*(B4:B20="Bob Guy")*(A4:A20))
    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 !!!

  4. #4
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Sorted !!

    Many Thanks

    daddylonglegs and VBA Noob


    just what I need

+ 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