+ Reply to Thread
Results 1 to 8 of 8

Counting the numbers

  1. #1
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Counting the numbers

    Hi All,
    Is there any formula that counts the occurence of numbers in a data range based on certain criteria?

    Fox example.
    Say i have a data from A1 till H1 and now i would like to count an occurence of the number till 5 columns (till E1) and would like to get the count.
    thank you

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Counting the numbers

    What is the criteria?
    Actually you can use
    =count(A1:E1)
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Counting the numbers

    Actually i dont want any hard coded formula, the data range will be fromA1 till H1 and the required range will be specified in a cell.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting the numbers

    =count(indirect(cell_with_range))

    Keep in mind that INDIRECT is volatile
    Last edited by arthurbr; 07-26-2010 at 02:35 PM.

  5. #5
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Counting the numbers

    Hi arthurbr thanks for your help,
    Somehow its not working, might be i dont know how to apply the formula.
    I will rephrase my requirement.
    There is a cell (Cell A1) wherein i have numbers and i have a data range.
    Based on the number in cell A1 the formula should count the occurence of numbers in the data range that i have.

    Say in cell A1 number is 5 and my data range is from C1 till K1 and the numbers in the data range is as follows i have numbers i C1 D1 F1 J1. In the data range in all i have 4 occurence of the numbers. Now i want the formula which will just count the numbers in the first 5 column of the data range. The formula should start counting from C1 till G1 and fetch me the occurence of the numbers from the data range.
    Hope i have expressed my requirement with the clarity.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting the numbers

    You can use INDEX

    =COUNT(C1:INDEX(C1:K1,A1))

  7. #7
    Forum Contributor
    Join Date
    03-03-2004
    Location
    mumbai
    MS-Off Ver
    2003,2007
    Posts
    151

    Re: Counting the numbers

    Thanks a lot my dear friend, its working now.
    Just wondering why have you created your user ID name as Donkey, its not matching up with your skill

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Counting the numbers

    Quote Originally Posted by mangesh
    Just wondering why have you created your user ID name as Donkey, its not matching up with your skill
    unfortunately everything is relative ...

+ 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