+ Reply to Thread
Results 1 to 5 of 5

Sum based on multiple conditions

  1. #1
    Registered User
    Join Date
    08-28-2009
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Sum based on multiple conditions

    I am trying to sum numbers based on three counditions. My problem the third condition needs to use a wild card. I have attached a sample file, in the last condition I am only wanting to sum numbers where the characters in the last column begins with bd*

    The yellow cell contains the formula I am using.
    Attached Files Attached Files
    Last edited by NMJones; 08-28-2009 at 02:35 PM.

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

    Re: Sum based on multiple conditions

    Try:

    =SUM(IF((A1:A10="South")*(C1:C10="Meat")*(LEFT(E1:E10,2)="bd"),D1:D10))

    or

    =SUMPRODUCT(--(A1:A10="South"),--(C1:C10="Meat"),--(LEFT(E1:E10,2)="bd"),D1:D10)

    which doesn't need to be confirmed with CSE key combination.
    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
    08-28-2009
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Sum based on multiple conditions

    The first returned #VALUE!

    The second returned 0

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

    Re: Sum based on multiple conditions

    The first needs to be confirmed with CTRL+SHIFT+ENTER not just ENTER...

    In your sample data there are no items in E1:E10 that begin with "bd".. so you get 0.

  5. #5
    Registered User
    Join Date
    08-28-2009
    Location
    Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Sum based on multiple conditions

    E2 and E4 both start with bd

    I confirmed the first formula and returned 0

    OH - forgot it was also filtering for "South" and "Meat"

    It's working

    Thanks
    Last edited by NMJones; 08-28-2009 at 02:34 PM.

+ 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