+ Reply to Thread
Results 1 to 5 of 5

help with sum function

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    help with sum function

    Hello,

    May I seek help about count function.

    I would want to count the number of each columns collected by a given person. I just dont know the formula to get it. :'(

    I have attached the sample data
    to make it easier.

    I was trying to work on the Summary tab. The search criteria is in the Overall tab.


    I thought i can work it out using the formula given in the below link. but im getting an error. "#NA"


    http://www.excelforum.com/excel-form...html?p=3168098


    Please help.


    Thank you in advance

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: help with sum function

    show us an excel file, without confidentional information.

    please also add the desired (expected) result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    02-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2007 and 2013
    Posts
    43

    Re: help with sum function

    I've attached the excel file. just don't know what happen. Anyway, here it is.

    What i wanted to get is the numbers of +P, -P -M etc... of a particular name in the column which can be looked up in the Overall tab.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: help with sum function

    Hi,
    I think the reason it did not work in your original file, you have there duplicate names.
    Formula below only counts the nonzero numbers. For example for NPO it will count too. Not sum. If you wanna sum them then you should replace COUNTIFS() with SUMIFS()

    =COUNTIFS(INDEX(Overall!$D$2:$J$301,,SMALL(IF(C$1=Overall!$D$1:$J$1,COLUMN(Summary!$C$1:$I$1)-2,""),COUNTIF(Summary!$C$1:C$1,Summary!C$1))),">0",Overall!$A$2:$A$301,Summary!$B2) Ctrl+Shift+Enter

    See the attached file
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: help with sum function

    I am sorry, I did not recognize that you use 2003 version. The formula above will not work then. Usi this formula instead and press Ctrl+Shift+Enter. C2 cell=

    =SUM((INDEX(Overall!$D$2:$J$301,,SMALL(IF(C$1=Overall!$D$1:$J$1,COLUMN(Summary!$C$1:$I$1)-2,""),COUNTIF(Summary!$C$1:C$1,Summary!C$1)))>0)*(Overall!$A$2:$A$301=Summary!$B2)) CSE

    Drag it to other cells

+ 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