+ Reply to Thread
Results 1 to 5 of 5

counting cells

  1. #1
    Registered User
    Join Date
    07-16-2008
    Location
    saudi arabia
    Posts
    2

    counting cells

    Hi everyone,
    I wish if anyone can help me.
    I have made a table contains list of numbers and I want to count how many cells contains the numbers between 62 to 65 from the whole table.

    Ex: the numbers are
    85 58 95 62 62 78 65 36 63 64 76 64
    as u see, we have 5 numbers in the range(62-65)

    How can I do it in excel? what function should I use?
    Please help me.
    Thanx.

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Lets say that your range is A1:A10 and your values to search between are in B1 (lowest) and C1 (highest) then use this in D1:
    =COUNTIF(A1:A10,"<="&C1)-COUNTIF(A1:A10,"<="&B1)
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    07-16-2008
    Location
    saudi arabia
    Posts
    2

    Thanx alot Mr. simon

    Thank u very much Dear Mr. Simon.
    But I think u didn't understand me.
    What I want is the number of cells that contain values (any) of these numbers:62,63,64,65
    in a specific range.

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    =countif(a1:a20,62)+countif(a1:a20,63)+countif(a1:a20,64)+countif(a1:a20,65)

  5. #5
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Other examples

    =SUMPRODUCT(--({62;63;64;65}=(A1:L13)))
    ; might need to be , or \ depending on what is used in your country.

    or
    =SUMPRODUCT(--(A2:A6=A1:L13))

    or
    =SUM(--(B1:B5=TRANSPOSE(A1:A13)) Array Entered (read the blue text).

    All examples returns 6 for the enclosed example.

    //Ola

+ 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