+ Reply to Thread
Results 1 to 12 of 12

=sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this manner

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this manner

    I am trying to figure out how to get my "Other" Column. I have countifs set for 4 categories, and need a 5th as a catch-all for those not specifically called out. I have tried a few things that I've come up with, but I keep getting formula errors with the pieces within the bracket.

    Anyone able to save the day for me?
    Attached Files Attached Files
    Last edited by nscarritt; 02-26-2014 at 03:57 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    how about simpley taking the sum of the others away from the total?
    =O9-SUM(J9:M9)
    Then change the total to
    =SUM(J9:M9)

    Also, to aid in copying the other formula down and across, a small change...
    =COUNTIFS($C$2:$C$935, J$8, $D$2:$D$935, $I$9)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    Not sure where that calculation is meant to go. However, the easy way is to "count everything" and then take away the sum of the things you can specifically count.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    How about this in N9:

    Please Login or Register  to view this content.
    and then copied down.

    BAM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  5. #5
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    Reviving the thread for one last question. For the Other Column at the top I have done a countif(Venue Range, Venue Name) - ($J:$M) .. and it seems to work. I cannot figure out how to create it for the bottom 3 in grey, which are based on position. Is anyone able to help me get past this?
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    Reviving the thread for one last question.
    Not sure about reviving it. There's no indication that it was ever marked solved or that you thanked anyone for offering a solution.

    You had three answers within one hour of asking your question. And here you are, three weeks later, and don't even comment on the previous replies ... good or bad. Why would anyone want to pick it up again? I, for one, will not be offering an answer.

  7. #7
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    TM,

    I thanked the contributors via Reputation for their inputs with the coding of formulas. FDibbins provided a great example, but I think it might be easiest at this point to use your solution.

    I haven't been able to address this as we had an emergency project come up at work for the past few weeks. I am sorry that you personally didn't get a thank you, but I haven't been able to get back to this until now. Thank you for your initial input.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    I think it might be easiest at this point to use your solution.
    I didn't provide a solution; I offered a suggestion which, in effect, was what Ford gave you a formula for. I may have been using my iPad at the time, in which case I would not have been able to see the workbook properly (rows/columns/formulae) so I wouldn't have been in a position to offer a specific answer.

    So, maybe my answer didn't merit a thank you, a +rep or a comment of any kind. I can understand that priorities may, and often must, change ... but three weeks is a long time, especially in the world of the computers, tablets, smart phones and the Internet.

    To quote the forum rules:

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

  9. #9
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    I will be much more vigilant in the future and certainly appreciate everyone's help. If there are any ideas with solutions on how to exclude those items already counted in a =sum(=countifs(range,{value series})) I would greatly appreciate the help.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    I would suggest you mark this thread as solved, open a new thread for the new question, cross referring to this thread for background. Or just provide the current workbook and an explanation of the issue(s) and progress.

    That will open the thread up to new input. The current thread with input from a Mod, a Guru and VFC, and a non-zero post count probably won't attract much passing interest.

  11. #11
    Registered User
    Join Date
    12-19-2013
    Location
    Kansas City
    MS-Off Ver
    Office 2010
    Posts
    42

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    Thank you TM et all!

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: =sum(countifs(range,{not this, not this, nor this} -How to exclude criteria in this ma

    You're welcome. Thanks for the rep.

+ 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. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. [SOLVED] COUNTIFS with many criteria in same range
    By asterobelix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 12:10 AM
  3. COUNTIFS with Multiple Criteria in One Range
    By mphillips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 02:43 PM
  4. Countifs in VBA. Loops on criteria range
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2011, 06:35 PM
  5. COUNTIFS with a range of values for criteria
    By sslack88 in forum Excel General
    Replies: 3
    Last Post: 11-03-2008, 03:14 PM

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