+ Reply to Thread
Results 1 to 4 of 4

Counting specific numbers in a particular range.

  1. #1
    Registered User
    Join Date
    12-06-2015
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    79

    Post Counting specific numbers in a particular range.

    Numbers:
    A1 = 2
    A2 = 5
    A3 = 3
    A4 = 6
    A5 = 2
    A6 = 3
    A7 = 4
    A8 = ?

    Looking for a formula that would allow me to count the numbers 3-5, only, and the result be displayed in cell A8, using IF and COUNT, or maybe something else.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Counting specific numbers in a particular range.

    There's a number of solutions that would work. SUMPRODUCT or COUNTIFS would be the simplest in execution, though something convoluted could be constructed with basic functions as well.

    =SUMPRODUCT((A1:A7>2)*(A1:A7<6))
    =COUNTIFS(A1:A7,">2",A1:A7,"<6")


    =COUNT(IF(A1:A7>2,IF(A1:A7<6,A1:A7))) -array formula
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting specific numbers in a particular range.

    Here's another one assuming the numbers will always be integers.

    =SUM(COUNTIF(A1:A7,{3,4,5}))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    12-06-2015
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    79

    Re: Counting specific numbers in a particular range.

    Quote Originally Posted by daffodil11 View Post
    There's a number of solutions that would work. SUMPRODUCT or COUNTIFS would be the simplest in execution, though something convoluted could be constructed with basic functions as well.

    =SUMPRODUCT((A1:A7>2)*(A1:A7<6))
    =COUNTIFS(A1:A7,">2",A1:A7,"<6")


    =COUNT(IF(A1:A7>2,IF(A1:A7<6,A1:A7))) -array formula
    Thanks a lot. This was the answer i was looking for.

+ 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] Counting a specific characters in a range using a criteria from another range
    By Wamperdz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-05-2015, 09:32 PM
  2. Replies: 1
    Last Post: 05-05-2015, 06:43 PM
  3. Replies: 1
    Last Post: 12-25-2014, 02:25 PM
  4. [SOLVED] Counting cells with numbers in the column that contains specific words
    By dnov in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-09-2014, 06:06 PM
  5. Replies: 15
    Last Post: 10-11-2009, 11:46 AM
  6. Counting specific series of numbers
    By kohaku in forum Excel General
    Replies: 6
    Last Post: 09-26-2007, 08:54 PM
  7. [SOLVED] counting only specific numbers in column
    By Alex C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2005, 04:06 PM

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