+ Reply to Thread
Results 1 to 10 of 10

Countifs returning wrong value

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Countifs returning wrong value

    HI following countifs function is working but it's returning wrong value

    Googled it , but not sure what went wrong .

    Please Login or Register  to view this content.

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

    Re: Countifs returning wrong value

    Post a sample file.

    Are you sure about this criteria?

    =COUNTIFS('DATA SHEET'!Z:Z,B8,'DATA SHEET'!AD:AD,">="&'DATA SHEET'!AB:AB,'DATA SHEET'!AB:AB,">0")

  3. #3
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Re: Countifs returning wrong value

    Yes criteria is correct. Value mentioned AD column should be >= AB column & Value in AB should be greater than 0.

    I do not find attach file option while replying . How do I do it?

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Countifs returning wrong value

    To attach a file click Go Advanced then click the paper clip on the right of the yellow smiley face.

    Is it returning a some values or just zero?

    Separate the COUNTIFs into three individual COUNTIF (not COUNTIFS), place in three different cells.
    This will show if the problem is one of them is producing zero or a combination of the three is at fault.
    Last edited by Special-K; 07-08-2016 at 06:24 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Countifs returning wrong value

    The paperclip icon no longer works, so you should follow this procedure to attach a file:

    Click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Hope this helps.

    Pete

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Countifs returning wrong value

    Quote Originally Posted by mangeshp4 View Post
    =COUNTIFS('DATA SHEET'!Z:Z,B8,'DATA SHEET'!AD:AD,">="&'DATA SHEET'!AB:AB,'DATA SHEET'!AB:AB,">0")
    Using that syntax, the highlighted portion needs to refer to a single cell.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Countifs returning wrong value

    The paperclip icon no longer works
    Oh yes, you're right. I thought it was my PC when this happened recently.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countifs returning wrong value

    Value mentioned AD column should be >= AB column
    Countifs won't be able to do that.

    Try

    =SUMPRODUCT(--('DATA SHEET'!Z1:Z1000=B8),--('DATA SHEET'!AD1:AD1000>='DATA SHEET'!AB1:AB1000),--('DATA SHEET'!AB1:AB1000>0))

    Notice I added row #s 1 to 1000 to your ranges.
    It's best to NOT use entire column references like A:A in sumproduct.
    Restrict it to the actual used area of the sheet.

  9. #9
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Re: Countifs returning wrong value

    Ohh. countifs is restricted to a particular cells . Thanks for alternate suggestion.

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Countifs returning wrong value

    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] Getting wrong output countifs formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2015, 12:25 PM
  2. Countifs formula counting the wrong column
    By hedefinesme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2014, 11:42 AM
  3. [SOLVED] I think I am doing something wrong with COUNTIFS...
    By codyryan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2014, 03:18 PM
  4. [SOLVED] COUNTIFS returning #VALUE!
    By photoryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2013, 01:07 AM
  5. Adding Multiple COUNTIFS into one formula OR am I doing this all wrong???
    By jczapla in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 09-01-2013, 07:57 PM
  6. [SOLVED] COUNTIFS Fuction returning wrong data
    By christopherw34 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2012, 12:31 PM
  7. [SOLVED] COUNTIFS Function returning wrong data
    By christopherw34 in forum Excel General
    Replies: 8
    Last Post: 05-02-2012, 12:29 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