+ Reply to Thread
Results 1 to 3 of 3

count the occurance of a number in a column, within data parameters.

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    25

    count the occurance of a number in a column, within data parameters.

    Hi! Pls help me to count the occurance of a number in the given column.

    My data is in Sheet 1
    COLUMN A
    1,2,4
    5,1,2
    1,2,5


    Start Date End Date
    1june 13 2june 1

    Result require in Sheet2
    COLUMN A COLUMN B (RESULT)
    1 =COUNTIFS('DN TRACKING'!$AL$4:$AL$1045746,"="&B5,'DN TRACKING'!$B$4:$B$1045746,">="&$B$2,'DN TRACKING'!$B$4:$B$1045746,"<="&$C$2)


    I am using the above formulae, it is giving me result only if column A has only 1 number, it is not counting the numbers because it has comma. can you pls solve my problem
    3
    4
    5
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: count the occurance of a number in a column, within data parameters.

    Hi shermin,

    Skip SR no. 1 is not there in column E of "master" sheet.. please check.
    Also, can you enter few results manually along with logic used to obtain them and I'll try to achieve them using formulas. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: count the occurance of a number in a column, within data parameters.

    Quote Originally Posted by dilipandey View Post
    Hi shermin,

    Skip SR no. 1 is not there in column E of "master" sheet.. please check.
    Also, can you enter few results manually along with logic used to obtain them and I'll try to achieve them using formulas. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    Hi! Dilip,

    Thank you for your email.
    In master, column E has Sr. but some entries has 2 sr.nos which are separated by a comma or &.
    That is the problem, as if there is one sr. no I am able to get a count, but if there are more then 1 sr. no, it is not counting, my attached file has result also in sheet 2.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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