Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Question on the countif function and times

I need to count all the times between 12:01 am and 12:10 am in a collumn, i
have been messing around with variations of the formula, i have even tried to
use cells to hold 12:01 and 12:10, but that didnt work either.

=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"12:10")
with this equation i get a 0 value


=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"<12:10")
with this formula i get an answer of -238, ie the negative value of the
number of total entries

thanks for any help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Question on the countif function and times

Why aren't your ranges the same?

--
__________________________________
HTH

Bob

"MTSkibum" wrote in message
...
I need to count all the times between 12:01 am and 12:10 am in a collumn, i
have been messing around with variations of the formula, i have even tried
to
use cells to hold 12:01 and 12:10, but that didnt work either.

=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"12:10")
with this equation i get a 0 value


=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"<12:10")
with this formula i get an answer of -238, ie the negative value of the
number of total entries

thanks for any help



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Question on the countif function and times

they were the same, i was using 1-500, but right before i copied and pasted i
tried to change it to 238 to make it match the text i typed in.

In the file they are the same, and it reads 1-500, although there are only
238 entries.



"Bob Phillips" wrote:

Why aren't your ranges the same?

--
__________________________________
HTH

Bob

"MTSkibum" wrote in message
...
I need to count all the times between 12:01 am and 12:10 am in a collumn, i
have been messing around with variations of the formula, i have even tried
to
use cells to hold 12:01 and 12:10, but that didnt work either.

=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"12:10")
with this equation i get a 0 value


=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"<12:10")
with this formula i get an answer of -238, ie the negative value of the
number of total entries

thanks for any help




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Question on the countif function and times

I think your first formula is correct and you may be getting a good answer,
bt it is being formatted as time.

Try this, in a completely new cell

=N(COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G500,"12:10"))

--
__________________________________
HTH

Bob

"MTSkibum" wrote in message
...
they were the same, i was using 1-500, but right before i copied and
pasted i
tried to change it to 238 to make it match the text i typed in.

In the file they are the same, and it reads 1-500, although there are only
238 entries.



"Bob Phillips" wrote:

Why aren't your ranges the same?

--
__________________________________
HTH

Bob

"MTSkibum" wrote in message
...
I need to count all the times between 12:01 am and 12:10 am in a
collumn, i
have been messing around with variations of the formula, i have even
tried
to
use cells to hold 12:01 and 12:10, but that didnt work either.

=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"12:10")
with this equation i get a 0 value


=COUNTIF(G1:G500,"12:01")-COUNTIF(G1:G238,"<12:10")
with this formula i get an answer of -238, ie the negative value of the
number of total entries

thanks for any help






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
function question (sumif countif conditional) Norbert Excel Worksheet Functions 0 February 25th 08 09:37 PM
countif function question dveenhuis Excel Worksheet Functions 3 September 13th 07 01:46 PM
A question about the Count/CountIf function Carl Excel Worksheet Functions 3 January 12th 07 09:10 AM
CountIf Function Question Josh in Indy Excel Discussion (Misc queries) 4 April 6th 06 08:28 PM
Countif/Sumif function question psyd Excel Worksheet Functions 0 November 5th 04 06:09 AM


All times are GMT +1. The time now is 07:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"