+ Reply to Thread
Results 1 to 5 of 5

COUNTIF to return number of values less than an iterating number?

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    Provo, UT
    MS-Off Ver
    Excel 2013
    Posts
    2

    COUNTIF to return number of values less than an iterating number?

    So I'm trying to count how many numbers in a given range are less than one and get it to return in the first cell, and how many numbers in the same range are less than two to be displayed in the next cell for around 90 cells. How can I do this? Normally, I just click and drag but it's not working this time...

    This is the closest I'm getting.

    =COUNTIF($A$2:$A$89, "<3")

    But what I want is the 3 to change for every cell. Any suggestions?

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: COUNTIF to return number of values less than an iterating number?

    You can try this:

    =COUNTIF($A$2:$A$89,"<"&ROWS($A$1:$A1))

    Then fill down. That will change from 1, to 2, then to 3, etc. for as many rows as you fill down.

    - Moo

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: COUNTIF to return number of values less than an iterating number?

    Would this do what you need?
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  4. #4
    Registered User
    Join Date
    10-25-2013
    Location
    Provo, UT
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: COUNTIF to return number of values less than an iterating number?

    Awesome, that worked perfectly Moo the Dog! Thank you!

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: COUNTIF to return number of values less than an iterating number?

    You're quite welcome. Glad to help!
    - Moo

    - - - - - - - - - -
    Feel free to click on the small star at the lower left corner of one of my posts if you feel my answer has solved your question. It's always appreciated!

+ 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. Replies: 10
    Last Post: 01-03-2021, 06:24 PM
  2. Look across values in 12 columns, return the number of unique values
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2009, 05:18 PM
  3. How to return the row number of an table of values?
    By friend11_6 in forum Excel General
    Replies: 2
    Last Post: 10-12-2008, 09:16 PM
  4. Countif (Number of values in a range)
    By braydon16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2007, 06:19 PM
  5. Lookup values & return overall number
    By darkangel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2007, 04:18 AM

Tags for this Thread

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