+ Reply to Thread
Results 1 to 9 of 9

countifs returns only zero

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003
    Posts
    52

    countifs returns only zero

    Hi all

    Here i am still plugging away and trying different formulas year after year but never seeming to get better :-)

    I have a workbook where i have:
    column AH formatted as numbers only and containing numbers only
    Column F with names of people

    I want to know for example
    john smith (column F) has any number over 100 how many times show up against his name in column AH?
    Anne smith (column F) has any number over 100 how many times show up against her name in column AH?
    Jane Doe (column F) has any number over 100 how many times show up against her name in column AH?

    This is what I have come up with but only ever comes up with zero! very frustrating

    =COUNTIFS('QREC Manage Job Requisitions'!AH:AH,">100",'QREC Manage Job Requisitions'!F:F,'260218'!A3)

    ANY HELP WOULD BE AMAZING!

    Izzy

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: countifs returns only zero

    Hi Izzy,

    Here is an example that uses Countifs. I don't think Countifs was available in 2003 Excel so you must have a newer version?

    Countifs Example with GT 100.xlsx

    I find the quote marks around the ">100" are somewhat confusing.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: countifs returns only zero

    Izzy, Good evening.

    Try to use:
    Please Login or Register  to view this content.
    Is that what you want?

    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  4. #4
    Registered User
    Join Date
    05-26-2010
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: countifs returns only zero

    Marvin thanks for that - i can say its still giving me zero exactly the same - very weird...don't know if because my sample is referencing names from another tab to match the name in tab /formula...
    thanks for trying

  5. #5
    Registered User
    Join Date
    05-26-2010
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: countifs returns only zero

    hello Mazzaropi,

    thankyou so much for assisting - this is giving me #value error

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: countifs returns only zero

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  7. #7
    Registered User
    Join Date
    05-26-2010
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: countifs returns only zero

    HI again all, giving it a go with sample

    izzy
    Attached Files Attached Files

  8. #8
    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,916

    Re: countifs returns only zero

    This is what you should be using:

    =SUMPRODUCT((Requisitions!C:C>100)*(Requisitions!B:B=A3))

    NOT this:

    =SUMPRODUCT((Requisitions!C:C>100)*(Requisitions!B:B='260218'!A3))

    HOWEVER, it will not work unless the entries in column B of the requisitions sheet are exactly the same as the lookup value. Your column B contains, in many cases, multiple names and extra data like this: [C]

    You will also need to change the fomula in C2 of the requisitions sheet, which is currently returning text, to this:

    =IFERROR(VALUE(LEFT(A2, LEN(A2)-9)),"")

    This will turn it into a number. Then this will start to work:

    =COUNTIFS(Requisitions!C:C,">"&100,Requisitions!B:B,A2)
    Last edited by AliGW; 02-27-2018 at 02:11 AM.
    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.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: countifs returns only zero

    1. You do not need the text "days ago" in column A of the Requisition sheet, and therefore you don't need column C.
    2. If you insist on the text in column A, then use CUSTOM FORMATTING with 0 " days ago";; 0 " days"

    Named Range ReqTable:=Requisitions!$A$2:INDEX(Requisitions!$B:$B,COUNT(Requisitions!$A:$A)+1)
    3. On 260218 sheet column B, use
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] 3 Criteria COUNTIFS returns as ZERO
    By jucavicc in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-16-2017, 07:25 PM
  2. [SOLVED] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  3. COUNTIFS issue - Returns zero matches (possibly wrong formula???)
    By sx200n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2014, 08:09 AM
  4. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  5. Using two ranges as ONE RANGE in countifs with conditions. Formula returns an error
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 08:20 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Countifs not counting, returns #value
    By Qualo_Jinn in forum Excel General
    Replies: 3
    Last Post: 12-09-2011, 04:13 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