+ Reply to Thread
Results 1 to 3 of 3

Countifs with OR or maybe other function?

  1. #1
    Forum Contributor
    Join Date
    02-16-2010
    Location
    Manchester, England
    MS-Off Ver
    Microsoft 365 for Enterprise
    Posts
    103

    Countifs with OR or maybe other function?

    I have a sheet with 1700 rows, Column A contains multiple entries for each "Week 01" through "Week 24", Column L is blank or contains a "1" and Column AN contains "JSG1" through "JSG10", I was starting with countifs but the OR part threw me what I want a count of is:

    All the instances where column A = "Week 01" AND Column L = "1" AND Column AN Contains either "JSG5" OR "JSG6"

    these were suggested:
    =SUMPRODUCT(--(A1:A10="Week 01"),--(L1:L10=1),--((AN1:AN10=5)+(AN1:AN10=6)>0))

    or maybe:

    =SUMPRODUCT(--(A1:A10="Week 01"),--(L1:L10="1"),--((AN1:AN10="5")+(AN1:AN10="6")>0))

    or even:

    =SUMPRODUCT(--(A1:A10="Week 01"),--(L1:L10=1),--((AN1:AN10="5")+(AN1:AN10="6")>0))

    but I had previously referencedthe AN data as just a numeric for anonymisation are the above 3 options not running because of the alpha prefix in AN? I had changed the ranges to reflect my data........

  2. #2
    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,370

    Re: Countifs with OR or maybe other function?

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.


    See next post.
    Last edited by JohnTopley; 07-12-2017 at 11:00 AM. Reason: Added more info

  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,370

    Re: Countifs with OR or maybe other function?

    Try


    =SUMPRODUCT(--(A1:A10="Week 01"),--(L1:L10="1"),--((AN1:AN10="JSG5")+(AN1:AN10="JSG6")))

+ 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. adding a Frequency function to a CountIFS function
    By Plucky_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-12-2017, 08:13 PM
  2. CountIFS Function
    By colegerald38 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-13-2015, 09:31 AM
  3. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  4. Use COUNTIFS function on results of DATEVALUE function?
    By Si902 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2015, 08:13 PM
  5. Countifs function in vba
    By Sugisenthil in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-27-2015, 04:56 AM
  6. [SOLVED] COUNTIFS Function Help
    By Sandpit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-29-2012, 12:55 PM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 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