ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   COUNTIF with a range of time values (https://www.excelbanter.com/excel-worksheet-functions/243466-countif-range-time-values.html)

Kazman

COUNTIF with a range of time values
 
I am trying to count the entries based on a range of time values in a
different worksheet but in the same work book. Example:
=COUNTIF(Tickets!G:G,"<24:00""16:59") where "Tickets" is the other worksheet
name and I would like to count those extries in column G which have a value
between 16:59 and 24:00.

Thank You

Jacob Skaria

COUNTIF with a range of time values
 
It would be better if you can show some samples...or let us know exactly in
what format you have entered the time values.Try the below

=COUNTIF(Tickets!G:G,"16:59")-COUNTIF(Tickets!G:G,"24:00")

If this post helps click Yes
---------------
Jacob Skaria


"Kazman" wrote:

I am trying to count the entries based on a range of time values in a
different worksheet but in the same work book. Example:
=COUNTIF(Tickets!G:G,"<24:00""16:59") where "Tickets" is the other worksheet
name and I would like to count those extries in column G which have a value
between 16:59 and 24:00.

Thank You


T. Valko

COUNTIF with a range of time values
 
=COUNTIF(Tickets!G:G,"<24:00""16:59")

One way:

Use cells to hold the time boundaries:

A1 = 16:59
B1 = 24:00

=COUNTIF(Tickets!G:G,""&A1)-COUNTIF(Tickets!G:G,"="&B1)

--
Biff
Microsoft Excel MVP


"Kazman" wrote in message
...
I am trying to count the entries based on a range of time values in a
different worksheet but in the same work book. Example:
=COUNTIF(Tickets!G:G,"<24:00""16:59") where "Tickets" is the other
worksheet
name and I would like to count those extries in column G which have a
value
between 16:59 and 24:00.

Thank You





All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com