+ Reply to Thread
Results 1 to 4 of 4

Counif function not working properly! Returning "0".

Hybrid View

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2011 Mac
    Posts
    50

    Counif function not working properly! Returning "0".

    i have a countif formula as follows:

    =countif($C$2:$C$7000,J1)

    The range references cells with results from formulas. J1 references the result to a formula as well. This formula should yield "1" but returns "0" instead. Thanks.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,111

    Re: Counif function not working properly! Returning "0".

    check the information returned is not text or numbers and you are doing the opposite in J1

    can you attach the spreadsheet ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    06-10-2013
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2011 Mac
    Posts
    50

    Re: Counif function not working properly! Returning "0".

    hey i figured out why it wasnt working properly. the data that my range referenced initially had "@ " and I used right/len-1 to get rid of it instead of right/len-2. there was a blank in front of the data that i could not see because of that slight mishap! thanks for your help though.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,111

    Re: Counif function not working properly! Returning "0".

    you 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. InStrRev is not working properly when i set the search criteria at "/" Why?
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2013, 01:03 AM
  2. [SOLVED] "next" command button not working properly
    By dpandk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2012, 11:48 PM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. "Do Until Loop" not properly working
    By Snoopy2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2010, 08:48 AM
  5. [SOLVED] Macro "1 tall/1 wide" not working properly
    By gizmo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 04:06 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