+ Reply to Thread
Results 1 to 5 of 5

Summing Values in column based upon multiple criteria

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    23

    Summing Values in column based upon multiple criteria

    Hi,

    Please refer to the attached excel file.

    I want to sum all the values in range U5:U27 if the corresponding values in column D and column R are matching (e.g. D5=R5, D6=R6 etc.)

    Thanks in advance for the help.

    Thanks,

    Shantanu
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Suming Values in column based upon multiple criteria

    hi Shantanu, so you want to add to your formula a criteria that D & R must match? try:
    =IF(AND(ISERROR(ROUNDDOWN(((S5-T5)/T5)*100,2)),D5<>R5),"",ROUNDDOWN(((S5-T5)/T5)*100,2))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Suming Values in column based upon multiple criteria

    Hi,

    I am sorry if I was not clear earlier. What I want to acheive is the sum of all the values in U5:U26 and display them in D27. The criteria I want to use for picking up the value in column U would be for e.g. if D5=R5 then pick up U5 for sum and so on.

    Hope I am clear this time

    Thanks,

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Suming Values in column based upon multiple criteria

    hmmmm do you mean D28 where your SUMIFS is? how about copying this & paste into the formula bar:
    =SUMPRODUCT((D5:D27=R5:R27)*(D5:D27>0)*(IF(ISNUMBER(U5:U27),U5:U27,0)))

    press CTRL + SHIFT + ENTER to confirm. so for this case, only D5 is equals to R5 & amount of 175 should be shown? and if D6 is equals to R6, it would be 175 + 300?

  5. #5
    Registered User
    Join Date
    08-16-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Suming Values in column based upon multiple criteria

    Hi,

    Thanks for the help.

    You guessed it right. if D6=R6 then i need 300 to be added to 175 and so on.

+ 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