+ Reply to Thread
Results 1 to 3 of 3

Nested COUNTIF within IF Function

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Nested COUNTIF within IF Function

    I would like to count the number of times that a numerical value occurs within a range of cells.

    I have been able to do this by creating the following formula, which counts the number of times a value is lower than 10:

    =COUNTIF(A1:A50,"<"&10)

    This works fine, however I would like to go one step further and only apply the above formula if the number appears in a cell that is on the same row as another cell with a particular value.

    For example, I only want to know how many times a value lower than 10 appears in column A, if the corresponding value in column B is 'Stage 1'.

    It looks like I'll need to nest a COUNTIF function within an IF function, but I could be wrong.

    Any help would be greatly appreciated.

    Thanks in advance

    Shaun

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

    Re: Nested COUNTIF within IF Function

    Does this work?

    =COUNTIFS(A1:A50,"<"&10,B1:B50,"Stage 1")
    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.

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Re: Nested COUNTIF within IF Function

    That has worked perfectly. Thank you very much for taking the time to reply!

+ 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] Nested Countif Function
    By DDM64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 10:16 AM
  2. Nested IF function with COUNTIF
    By jad70 in forum Excel General
    Replies: 5
    Last Post: 02-06-2012, 06:17 AM
  3. nested countif function
    By gavster in forum Excel General
    Replies: 12
    Last Post: 11-20-2007, 10:41 AM
  4. Countif with nested function not working?
    By jshuatree in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-17-2006, 05:55 PM
  5. [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