+ Reply to Thread
Results 1 to 4 of 4

Count cells in a range

Hybrid View

  1. #1
    Registered User
    Join Date
    04-02-2012
    Location
    Brasil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Count cells in a range

    Hello, I need to count how many values in a range of hours, something like this
    =COUNTIFS($C$2:$C$6972;">=H6";$C$2:$C$6972;"<=H7")
    The H column goes like

    1019893815
    1019895015
    1019896215
    1019898015
    This is time and date on seconds (GPS time)

    The problem is, if my formula is comparing the cell like the first formula I posted the return is "0", but if I make this
    =CONT.SES($C$2:$C$6972;">=1019893815";$C$2:$C$6972;"<=1019895015")
    The thing works. But I dont want to type manualy the values. Is the anything I can do?

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count cells in a range

    You need to have cell refs follow an '&'. Like this

    =COUNTIFS($C$2:$C$6972;">="&H6;$C$2:$C$6972;"<="&H7)

  3. #3
    Registered User
    Join Date
    04-02-2012
    Location
    Brasil
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Count cells in a range

    Thanks a lot!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Count cells in a range

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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