+ Reply to Thread
Results 1 to 8 of 8

COUNTIF for multiple options

  1. #1
    Registered User
    Join Date
    01-21-2016
    Location
    South East
    MS-Off Ver
    2013
    Posts
    19

    Lightbulb COUNTIF for multiple options

    Hi all,

    Im looking for a way to count multiple options in my countif formula. Please see my example attached (as I cant explain it very well).


    To count the amount of times people have selected beans, I use this formula:
    Please Login or Register  to view this content.
    I want to count the amount of times people have select beans and peas. I have tried this:
    Please Login or Register  to view this content.
    but it does not work, please help.

    Many thanks,
    R1
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: COUNTIF for multiple options

    Here:

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

  3. #3
    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,199

    Re: COUNTIF for multiple options

    Try

    =SUM(SUMIFS(K6:K9,J6:J9,{"beans:","peas:"}))

  4. #4
    Registered User
    Join Date
    01-21-2016
    Location
    South East
    MS-Off Ver
    2013
    Posts
    19

    Re: COUNTIF for multiple options

    Thank you to both, these both worked. I ended up using zbor's formula.

    If I want excel to display which item is the most ordered, based on the quantity how would I do that?

    I imagine it is an IF sum?

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: COUNTIF for multiple options

    Use this:

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


    confirmed with ctrl+shift+enter (not just enter)

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: COUNTIF for multiple options

    Above will return beans.

    If you looking in already created table then you can return beans and peas: as

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

  7. #7
    Registered User
    Join Date
    01-21-2016
    Location
    South East
    MS-Off Ver
    2013
    Posts
    19

    Re: COUNTIF for multiple options

    Fantastic.
    zbor you are a legend, thank you for your help!!!!!!

    (All sorted) SOLVED! Rep added.
    Last edited by R1_Canuck; 05-09-2016 at 07:28 AM. Reason: fixed, previous post not needed

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: COUNTIF for multiple options

    To make thread solved please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] IF with multiple options
    By mdt175 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2016, 06:52 PM
  2. countif for multiple options in same column.
    By superchew in forum Excel General
    Replies: 1
    Last Post: 06-30-2015, 11:56 AM
  3. Replies: 0
    Last Post: 08-26-2014, 08:44 AM
  4. VBA - 1 pivot filter control multiple pivots with multiple field options
    By bwolsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2014, 06:19 PM
  5. Searching in a excel sheet with multiple conditions and multiple options
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2013, 02:03 PM
  6. [SOLVED] trying to do a "countif" with multiple ranges and multiple criteria. Countif, Sumproduct?
    By completelyhis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 06:12 PM
  7. Values with multiple options
    By allnet000 in forum Excel General
    Replies: 4
    Last Post: 06-02-2011, 02:36 PM

Tags for this Thread

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