+ Reply to Thread
Results 1 to 8 of 8

Sum Based on few Criteria

  1. #1
    Forum Contributor
    Join Date
    04-18-2016
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    178

    Sum Based on few Criteria

    Dear All,

    I am unable to sum the data based on certain criteria. Please refer the sample sheet attached and let me know what is the error in the formula.

    Regards,
    Gem
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sum Based on few Criteria

    try


    D9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Highlighted part was D9 in your file which is referring the same cell where you were trying to putting the formula . That is why it was not working

    ortry

    D9
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 04-24-2017 at 02:18 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Sum Based on few Criteria

    Wrong criteria mentioned "D9" instead of "B9" kindly change.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Contributor
    Join Date
    04-18-2016
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    178

    Re: Sum Based on few Criteria

    Hi Shukla,

    I have applied the formula in my sheet but still the results are not coming. Refer the attachment.
    Pls help.

    Regards,
    Gem
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,187

    Re: Sum Based on few Criteria

    Try

    =IF(D$3<>"",(SUMPRODUCT(('CR Tracker'!$AC$3:$AC$500>=Report!D$3)*('CR Tracker'!$AC$3:$AC$500<=Report!F$3)*('CR Tracker'!$F$3:$F$500=Report!$D$5)*('CR Tracker'!$J$3:$J$500=Report!$B11))),"")

    Make sure all the ranges are the same

    And please add a sensible location to your account details.
    Last edited by JohnTopley; 04-24-2017 at 11:27 AM.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Sum Based on few Criteria

    As John said in post #5 Ranges should be same while you are using sumproduct function. See the below bold part.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    After change in Range Use below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-18-2016
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    178

    Re: Sum Based on few Criteria

    I am try to extract the data using the below formula, but it is not working. Sample file attached...

    {=IFERROR(INDEX('CR Tracker'!D$3:D$646,SMALL(IF('CR Tracker'!AC$3:AC$646>=Report_Summary!$D$2)*('CR Tracker'!AC$3:AC$646<=Report_Summary!$F$2)*(Report_Summary!=$D$4),ROW(Report_Details!$B$6:$B$200)-ROW(Report_Details!$B$6)+1," "),ROWS(Report_Details!$B$6:H6))),"")}

    Please help.

    Gem
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,187

    Re: Sum Based on few Criteria

    Duplicate post (last post)

    see reply here...

    http://www.excelforum.com/excel-form...king-help.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Macro Dividing Values Based upon Matching Criteria and Description Criteria
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 09-18-2016, 12:39 PM
  2. Replies: 0
    Last Post: 05-02-2016, 07:59 AM
  3. Replies: 2
    Last Post: 10-10-2015, 02:22 AM
  4. Replies: 11
    Last Post: 07-04-2014, 07:10 AM
  5. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  6. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  7. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 AM

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