+ Reply to Thread
Results 1 to 6 of 6

countifs with criteria at same columns

  1. #1
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    countifs with criteria at same columns

    i had table that i want to count how many test code "1a and 1b" is greater or equal or less than zero
    on my attached file i made a formula using count ifs "how many 1a and 1b test code is greater than zero"it gave me 2 which is wrong it is actually 8
    can you solve my problem without using two countifs one for 1 and one for 1b then add them together
    counthifs.xlsx
    countifs.png
    thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,790

    Re: countifs with criteria at same columns

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: countifs with criteria at same columns

    excel file attached just above the picture
    counthifs.xlsx
    i am not merging cells i now what bad they do
    😉
    Last edited by shj92922; 08-26-2018 at 09:42 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,790

    Re: countifs with criteria at same columns

    Try this:

    =SUM(COUNTIFS($I$3:$I$18,">"&0,$E$3:$E$18,{"1a","1b"}))

    or this:

    =SUM(COUNTIFS(I:I,">"&0,E:E,{"1a","1b"}))

  5. #5
    Registered User
    Join Date
    08-23-2018
    Location
    UAE
    MS-Off Ver
    2019 business
    Posts
    98

    Re: countifs with criteria at same columns

    thanks it works

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,790

    Re: countifs with criteria at same columns

    You're welcome!

+ 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] Countifs multiple criteria- criteria if cell is greater than another i adjacent column
    By Sircool1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2018, 11:23 AM
  2. [SOLVED] Countifs one criteria range multi dynamic cells as criteria
    By brake in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 03-10-2018, 08:00 AM
  3. Countifs - multiple columns with the same criteria
    By danici in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2017, 07:07 AM
  4. Replies: 2
    Last Post: 06-06-2017, 10:14 AM
  5. [SOLVED] Countifs on multiple columns & criteria
    By tabkaz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 02:59 AM
  6. Countifs Help with multiple columns in one criteria
    By itobon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2015, 02:03 PM
  7. Replies: 4
    Last Post: 07-20-2012, 07:51 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