+ Reply to Thread
Results 1 to 10 of 10

counting number of cells with same number

  1. #1
    Registered User
    Join Date
    01-05-2007
    Posts
    4

    Exclamation counting number of cells with same number

    Hy, Ireally need your help,
    I need to know wich formula or VB method, I have to use to count the number of cases in a range of colomns and rows C4:G107, have the same number. For eaxample how many times do I have number 1 and so on...

    Thank you for your time
    Charles

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Quote Originally Posted by charlie44
    Hy, Ireally need your help,
    I need to know wich formula or VB method, I have to use to count the number of cases in a range of colomns and rows C4:G107, have the same number. For eaxample how many times do I have number 1 and so on...

    Thank you for your time
    Charles
    Something like this:

    =COUNTIF(G4:G107,"1")

  3. #3
    Registered User
    Join Date
    01-05-2007
    Posts
    4
    thanks Portuga, but it's says invalid? do you any clue?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =COUNTIF(C4:G107,1)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Quote Originally Posted by charlie44
    thanks Portuga, but it's says invalid? do you any clue?

    No idea(??)
    I tested it and It works in my machine.
    What is the version of excel you are using?

  6. #6
    Registered User
    Join Date
    01-05-2007
    Posts
    4
    the version is exccel '97, actually it works better with this formula:
    COUNTIF(C4:G107,1)
    but I do not understand when I am asked for criteria, what should I include?

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

  8. #8
    Registered User
    Join Date
    12-08-2004
    Posts
    19
    countif can do funny things if your cells include 'text'. Make sure the cells are all 'values' and then try the countif function.

  9. #9
    Registered User
    Join Date
    01-05-2007
    Posts
    4
    Great it works, thank you very much all of you, actually I am trying to make statistics for lottery, I will recontact for any help

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it worked

    VBA Noob

+ 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