+ Reply to Thread
Results 1 to 12 of 12

Nested countif function won't work

  1. #1
    Registered User
    Join Date
    12-08-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2016
    Posts
    3

    Unhappy Nested countif function won't work

    Hi,

    COUNTIF is not working. It should count cell with nos. 69,38,8 then multiply it by 50 -

    =IF(G17="0", COUNTIF(H17:$H$52,">0")*50,0)


    001 3/01/16 $361.12 $- $361.12 3/01/16 $361.12 0 $-
    002 4/01/16 $361.12 $- $361.12 4/01/16 $361.12 0 $-
    003 5/01/16 $361.12 $- $361.12 5/01/16 $361.12 0 $-
    004 6/01/16 $361.12 $- $361.12 6/01/16 $361.12 0 $-
    005 7/01/16 $361.12 $- $361.12 7/01/16 $361.12 0 $-
    006 8/01/16 $361.12 $- $361.12 8/01/16 $361.12 0 $-
    007 9/01/16 $361.12 $- $361.12 9/01/16 $361.12 0 $-
    008 10/01/16 $361.12 $- $361.12 69 $361.12
    009 11/01/16 $361.12 $- $361.12 38 $361.12
    010 12/01/16 $361.12 $- $361.12 8 $361.12
    011 1/01/17 $361.12 $- $361.12 (23) $ 0.00
    012 2/01/17 $361.12 $- $361.12 (54) $ 0.00
    013 3/01/17 $361.12 $- $361.12 (82) $ 0.00
    014 4/01/17 $361.12 $- $361.12 (113) $ 0.00

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Nested countif function won't work

    Upload your spreadsheet so that we can see exactly what your file/cells look like and analyze your issue. In the reply window, scroll down and click on GoAdvanced and follow the wizard.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested countif function won't work

    Hi and welcome to the forum
    Please upload the workbook. We have no idea how this data appears in your columns.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    12-08-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2016
    Posts
    3

    Re: Nested countif function won't work

    The attach button won't open the path to my folders. Good grief.

    Here's the path though - uploaded it in google drive

    https://drive.google.com/file/d/0B9F...ew?usp=sharing
    Last edited by flickerfire; 12-08-2016 at 05:47 PM.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Nested countif function won't work

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested countif function won't work

    Yes, there's a problem with the paperclip icon.

    You need to Go Advanced and then look below the post area to see the 'Manage Attachments' option.
    Select the file and upload it from there.

  7. #7
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Nested countif function won't work

    If H is the line with 69 in it, isn't G always "$361.12" in this sheet?
    So result is always "0"?
    maybe you mean to be referring to another column where you say "g17"?

  8. #8
    Registered User
    Join Date
    12-08-2016
    Location
    Manila, Philippines
    MS-Off Ver
    2016
    Posts
    3

    Re: Nested countif function won't work



    There is no Manage Attachment button anywhere.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Nested countif function won't work

    Quote Originally Posted by flickerfire View Post


    There is no Manage Attachment button anywhere.
    You need to choose Reply and then 'Go Advanced', then look below the post

  10. #10
    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: Nested countif function won't work

    There is no button, just a hyperlink.
    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.

  11. #11
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Nested countif function won't work

    Try this adjustment (remove "" from around the F1="0")

    Please Login or Register  to view this content.
    Bramz

  12. #12
    Registered User
    Join Date
    12-06-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    72

    Re: Nested countif function won't work

    Hi,

    "=0" is used in countif not in if statement as 0 is numeric value use =0 instead of "=0"

    =IF(F2=0, COUNTIF(G2:$G$37,">0")*50,0)

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  2. [SOLVED] Nested COUNTIF within IF Function
    By shaunguyver in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2015, 10:47 AM
  3. [SOLVED] Nested Countif Function
    By DDM64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 10:16 AM
  4. Nested IF function with COUNTIF
    By jad70 in forum Excel General
    Replies: 5
    Last Post: 02-06-2012, 06:17 AM
  5. nested countif function
    By gavster in forum Excel General
    Replies: 12
    Last Post: 11-20-2007, 10:41 AM
  6. Countif with nested function not working?
    By jshuatree in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-17-2006, 05:55 PM
  7. [SOLVED] Countif Function -Nested
    By Angi in forum Excel General
    Replies: 7
    Last Post: 05-04-2005, 03: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