+ Reply to Thread
Results 1 to 5 of 5

countifs with comparision operator

  1. #1
    Registered User
    Join Date
    11-20-2019
    Location
    nepal
    MS-Off Ver
    office 2016
    Posts
    21

    countifs with comparision operator

    dear all,

    =COUNTIFS('AX DATA'!$K:$K,"*"&$A$1&"*",'AX DATA'!$Y:$Y,"*"&$A3&"*",'AX DATA'!$AP:$AP,">3")
    am not able to get the result with the given formula. but if I remove the ">" signs only then I get the result.
    so, I put the formula like,
    =COUNTIFS('AX DATA'!$K:$K,"*"&$A$1&"*",'AX DATA'!$Y:$Y,"*"&$A3&"*",'AX DATA'!$AP:$AP,"2")+COUNTIFS('AX DATA'!$K:$K,"*"&$A$1&"*",'AX DATA'!$Y:$Y,"*"&$A3&"*",'AX DATA'!$AP:$AP,"3")

    can't we put comparison operator in this formula. without using these operator length of the formula becomes soo long.
    please help.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: countifs with comparision operator

    Hi,
    Can you add the excel with the 1st formula to see where your error comes from?

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

    Re: countifs with comparision operator

    Based on the rest of the post, I think you mean this:

    =COUNTIFS('AX DATA'!$K:$K,"*"&$A$1&"*",'AX DATA'!$Y:$Y,"*"&$A3&"*",'AX DATA'!$AP:$AP,"<=3")

    >3 means greater than 3.
    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.

  4. #4
    Registered User
    Join Date
    11-20-2019
    Location
    nepal
    MS-Off Ver
    office 2016
    Posts
    21

    Re: countifs with comparision operator

    thanks for responding,
    after you asked to add excel file, i was making one and eventually the formula worked. so, i look if there was any mistake in my original file then i find out the error was in the number format in the data. then after i click on "convert to number",
    booyah formula worked.
    there was mistake in my number format in the data.

    thanks,

  5. #5
    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
    79,369

    Re: countifs with comparision operator

    Yes, however you still have your operator wrong!!! See post #3 ...

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 and operator or SUMPRODUCT?
    By raptor3624 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2016, 03:36 AM
  2. Data comparision
    By MungkeyFiury in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-22-2016, 05:36 PM
  3. Value comparision
    By raazz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2014, 08:52 AM
  4. Replies: 1
    Last Post: 08-23-2013, 05:45 PM
  5. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  6. Comparision of 2 cells
    By mvel_sky in forum Excel General
    Replies: 8
    Last Post: 05-08-2009, 04:44 AM

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