+ Reply to Thread
Results 1 to 8 of 8

Countif Formula - is it possible to count occurrences of number and add them together?

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Countif Formula - is it possible to count occurrences of number and add them together?

    So I have a formula which counts the number of appointments/applications etc. for a number of different consultants, e.g.. Matt, where a number 1 has been placed under the Appointment column, but in some cases under the Applications column I have had to place a 3 or 4 depending on the situation. Can I get the countif formula to not only count the occurrences but add them together?

    This is an example of the formula:

    =COUNTIFS(TM!C88:C104, "Matt",TM!J88:J104, "1")+COUNTIFS('Web Org'!E113:E131, "Matt",'Web Org'!L113:L131, "1")

    How do i recognise the other numbers (probably only going up to 10) without having to do another formula for each number (the real formula is really long, above is only an example and i will quickly run out of characters if i had to do another formula for each number.

    I would appreciate any help with this

    Thanks

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    maybe it's better to post a sample of your work to further analyze the data include expected outcome..
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    I would have to create a new spreadsheet with example info on it because the actual file is too large and complicated and has confidential information in it. It will take me a little while but I'll work on it and post back when i can, thanks

  4. #4
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    I think I may need to use the sumproduct function but i don't know how to use that...

  5. #5
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    Ok, I just changed it to this and I am 80% sure it is working

    +SUMPRODUCT(--('Web Org'!E113:E131="Matt")--('Web Org'!L113:L131>0))

    I'm going to test it a bit more then come back and close thread or cry for help if need be!

    Thanks for your responses so far

  6. #6
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    Nup, it's not working, it's counting up 4 where there are none. I'll try to get a sample of the file

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    try
    =sumif('Web Org'!E113:E131,"Matt",'Web Org'!L113:L131)

  8. #8
    Registered User
    Join Date
    09-11-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countif Formula - is it possible to count occurrences of number and add them together?

    Yep I'm pretty sure that is working, one of them is adding incorrectly but i think thats just a glitch. So thank you so much for your help!

+ 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