+ Reply to Thread
Results 1 to 4 of 4

Finding the number of cells from a range.

  1. #1
    Registered User
    Join Date
    05-27-2022
    Location
    Leipzig,Germany
    MS-Off Ver
    Excel 365
    Posts
    8

    Finding the number of cells from a range.

    I have to find the number of cells than contain a number within 900-1000 in an excel table that contains values from 0 to 2000 randomly aligned within a column.

    I have tried using =COUNTIF(B2:B5,">=32")-COUNTIF(B2:B5,"<=85"), which is the general formula for those matters, but it does not give the correct answer....

    Any ideas/alternatives?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Finding the number of cells from a range.

    I do not see why you expect criteria between 32 and 85 to give you numbers between 900-1000.

    Your table only has three rows?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If this does not work for you please attach a sample file with a sample result. See yellow banner at the top of the page.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-27-2022
    Location
    Leipzig,Germany
    MS-Off Ver
    Excel 365
    Posts
    8

    Re: Finding the number of cells from a range.

    My apologies, the values I have placed were copy-pasted from the example I wrote-down for reference.

    Thank you for your help, it does work with the formula you gave me, but I ran into another problem... I have to get the info from a different sheet...and if I use:

    =COUNTIFS(Sheet1!B2:B5,">="&900,B2:B5,"<="&1000) it does not get the info from the first sheet.

    Any idea what I'm doing wrong?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Finding the number of cells from a range.

    You use the sheet reference everywhere.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Return value finding a number in a range
    By dw_22801 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-31-2021, 03:42 PM
  2. [SOLVED] finding number from a set of comma separated number in a cell of a range
    By dorabajji in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 07-20-2020, 03:49 AM
  3. Replies: 3
    Last Post: 04-01-2012, 05:37 AM
  4. Finding a number in multiple cells with each of its own range
    By mmm213 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-14-2009, 06:46 PM
  5. finding a number in a range
    By mindfullsilence in forum Excel General
    Replies: 14
    Last Post: 04-22-2008, 09:52 PM
  6. Finding highest number in a range of cells
    By marcusr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2007, 08:42 AM
  7. [SOLVED] Finding the row number of first row in a selected range
    By Eamon Wall in forum Excel General
    Replies: 1
    Last Post: 10-10-2005, 08:05 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