+ Reply to Thread
Results 1 to 8 of 8

Count cells with a certain numeric range value

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Count cells with a certain numeric range value

    Hi, I need to count the number of cells that contain a number between say 1000 and 1999 and then 2000 and 2999. These are numbers assigned to a specific vehicle type and there are several types. I would like a cell set up to indicate the number of the type of vehicle with numbers assigned between two values. Make sense?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count cells with a certain numeric range value

    Here is an example of how to count numbers with COUNTIFS function

    =COUNTIFS(A2:A15,">="&B2,A2:A15,"<="&C2)

    A
    B
    C
    D
    2
    1000
    1000
    1999
    10
    3
    1100
    4
    1200
    5
    1300
    6
    1400
    7
    1500
    8
    1600
    9
    1700
    10
    1800
    11
    1900
    12
    2000
    13
    2100
    14
    2200
    15
    2300
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Count cells with a certain numeric range value

    first screen.gif

    I seem to be a little thick today. What I need is any number in column A between 01000 to 01999 to be counted and insertet in E13 " 01 truck totals"
    Can't seem to make it work.

  4. #4
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Count cells with a certain numeric range value

    Attachment 332954

    I seem to be a little thick today. What I need is any number in column A between 01000 to 01999 to be counted and inserted in E13 " 01 truck totals"
    Can't seem to make it work.

  5. #5
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Count cells with a certain numeric range value

    Attachment 332954

    I seem to be a little thick today. What I need is any number in column A between 01000 to 01999 to be counted and inserted in E13 " 01 truck totals"
    Can't seem to make it work. I just get a zero value returned

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count cells with a certain numeric range value

    Ok this shows that your numbers are actually text and therefor may required different treatment.

    Try this array formula

    =COUNT(IF((--(A2:A15)>=--B2)*(--(A2:A15)<--C2),--A2:A15))

    A
    B
    C
    D
    2
    01000 01000 02000
    10
    3
    01100
    4
    01200
    5
    01300
    6
    01400
    7
    01500
    8
    01600
    9
    01700
    10
    01800
    11
    01900
    12
    02000
    13
    02100
    14
    02200
    15
    02300


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  7. #7
    Registered User
    Join Date
    12-17-2009
    Location
    Bridgetown Nova Scotia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Count cells with a certain numeric range value

    Amazing! that worked, small piece of info I didn't know. Thank you. One more question, when I copy that formula into another cell I want to refer the same array, do I insert $ somewhere?

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count cells with a certain numeric range value

    If you copy formula from the formula bar you and the range remains the same than you don't need to.

    Thanks you for the feedback!

+ 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: 3
    Last Post: 05-13-2014, 10:48 PM
  2. How to remove only cells with numeric values from range
    By ExcellentM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2014, 01:37 PM
  3. Replies: 12
    Last Post: 09-17-2012, 01:03 PM
  4. How do I loop a range of cells until I get a numeric value?
    By ManKind in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-04-2006, 01:55 AM
  5. count and arrange cells have numeric values
    By amrezzat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2005, 05:58 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