+ Reply to Thread
Results 1 to 6 of 6

function to match and count specific numbers in a range

  1. #1
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    function to match and count specific numbers in a range

    Hi Expert,

    Wondering simple function is possible using match and count in a given range (a1:g7) :-
    Given row range (a1:g7)each cell numbers are
    2,20,38,29,6,8, 10

    need to count specific numbers only 2,20,29 answer is 3

    Thanks
    Karnik

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: function to match and count specific numbers in a range

    Try

    =SUM(COUNTIF(A1:G1,{2,20,29}))

  3. #3
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: function to match and count specific numbers in a range

    Hi John,
    Thanks for solution, it work!
    I was using if& lengthy one, this is excellent
    Thanks
    Karnik

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

    Re: function to match and count specific numbers in a range

    Here's another one...

    Use cells to hold the criteria.

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    43
    41
    67
    77
    16
    95
    5
    2
    3
    2
    2
    24
    31
    14
    15
    62
    66
    20
    3
    30
    99
    69
    41
    10
    77
    35
    29
    4
    97
    77
    86
    20
    24
    25
    79
    5
    94
    33
    69
    62
    43
    86
    92
    6
    89
    59
    64
    67
    94
    1
    87
    7
    19
    79
    74
    46
    86
    56
    29
    8
    ----
    ----
    ----
    ----
    ----
    ----
    ----
    ----
    ----
    ----


    This formula entered in J1:

    =SUMPRODUCT(COUNTIF(A1:G7,I1:I3))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    06-24-2012
    Location
    Australia
    MS-Off Ver
    Office365
    Posts
    302

    Re: function to match and count specific numbers in a range

    Hi Tony,
    Thanks , it works too!
    Karnik

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

    Re: function to match and count specific numbers in a range

    You're welcome. Thanks 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. Find and count specific numbers in a range of cells
    By aslante in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2015, 04:35 AM
  2. [SOLVED] Function possible for Using specific number to count other specific numbers total ?
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2015, 03:35 AM
  3. Count cells in a range that match a specific criteria in a different cell range
    By RhapsodyBay in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2015, 02:10 PM
  4. Replies: 3
    Last Post: 09-23-2014, 02:48 PM
  5. count numbers in specific range
    By mubashar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2014, 02:05 AM
  6. Count the number between specific Range of numbers
    By lavan_joy in forum Excel General
    Replies: 3
    Last Post: 01-19-2012, 11:00 AM
  7. Replies: 5
    Last Post: 07-01-2008, 09:36 AM

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