+ Reply to Thread
Results 1 to 8 of 8

Count specific number in a range

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2013
    Posts
    20

    Count specific number in a range

    Dears,

    I have an excel sheet that has customer records. the customer records are sorted out by branch number...like:

    501 customer A
    501 Customer B
    501 Customer C
    502 Customer D
    502 Customer E
    503 Customer F
    504 Customer G
    504 Customer G

    And I would like to know the number of records each branch has via formula. I used count IF, COUNTIF(range, criteria) and I got the value for branch 501. how can drag and get a result that looks like

    Branch 501 502 503 504
    records 3 2 1 2

    Thank you very much.
    Last edited by Vitorio; 08-19-2013 at 07:17 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Count specific number in a range

    Use Pivot Table bye leaving the branch # in Column Header and customer name header in Data Area.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    08-04-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Count specific number in a range

    The formula i use is =COUNTIF($A$2:$A$450,"501")

    I need to be able to drag the cell and while doing that, "501" should change to "502" and so on.....how can i do that?

  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: Count specific number in a range

    If you're dragging the formula down a column try this...

    =COUNTIF($A$2:$A$450,ROWS(A$1:A501))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    08-04-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Count specific number in a range

    It worked sixthsense way.

    Thanks fellas, great help....appreciate it

  6. #6
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Count specific number in a range

    Try this file.
    Attached Files Attached Files
    Last edited by ramananhrm; 08-19-2013 at 07:36 AM.
    Please click 'Add reputation', if my answer helped you.

  7. #7
    Registered User
    Join Date
    08-04-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: Count specific number in a range

    Actually i didn't know how to use it >.<;;

    I'm a beginner I admit it.

    if you please can simplify it.

    and btw 501 is in a column, customer name is in another and so on

    so that range is fixed for the branch codes from A1 to A* but all I need is to create something like you did, a branch list with the number of records under each branch.

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Count specific number in a range

    Or

    Check the attachment file for both formula and Pivot Table solution.
    Attached Files Attached Files

+ 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. count the number of times a number appears in a specific range
    By myjebay1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2013, 11:01 AM
  2. 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
  3. [SOLVED] Can i count the number of months in a specific range
    By radicrains in forum Excel General
    Replies: 12
    Last Post: 09-21-2011, 03:06 AM
  4. count number occurring within specific date range
    By Biff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2006, 01:40 PM
  5. count number occurring within specific date range
    By Ducky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2006, 01:35 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