+ Reply to Thread
Results 1 to 6 of 6

FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    HI,
    i need a formula to add amount based on two or more conditons.
    From the drop down list on each change i want to do the sum to be displayed in C18;
    see the attached file for reference. i can do the same thing using pivot tables but i want to the same to be done using the array formulas.

    Also tell me any other array formulas like this which are useful.
    Attached Files Attached Files
    Last edited by excelkeechak; 05-19-2009 at 12:54 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    The formula you want in C18 is:

    =SUMPRODUCT(--($B$2:$B$11=C15),--($C$2:$C$11=C16),--($D$2:$D$11=C17),E2:E11)

    Also, you can greatly simplify the Data Validation for the Date cell (C15) by changing the validation from LIST to DATE.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    Thanks for that formula. also do give me any urls or examples of using the same kind of formulas.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    Complete explanation of SUMPRODUCT:
    http://www.xldynamic.com/source/xld....T.html#classic

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED].



    (Also, use the "scales" icon in our posts to leave Feedback, it is appreciated)

  5. #5
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    thanks for that link any other links if available pls give me.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: FORMULA TO ADD AMOUNT BASED ON TWO or MORE CONDITIONS

    [sarcastic mode = ON]
    Please Login or Register  to view this content.
    [sarcastic mode = OFF]

    (wink-wink-nudge-nudge)

+ 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