Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default COUNT(IF((,,,)) function

hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be processed as
i am trying to filter out my data with respect to time? i tried substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3 (i put 3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work in this
particular scenario? thanks in advance...

vjmc
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT(IF((,,,)) function

What does "12:00" represent? 12:00 AM or 12:00 PM ? If it's PM try this:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(Y2:Y8000<180000))

Note that if a cell in Y2:Y8000 is empty it will evaluate as being <180000
and could lead to incorrect results.

You can account for that by testing to make sure the cells do contain
numbers:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))

You can also shorten it a little and replace TIME(12,0,0) with 0.5. 12:00 PM
is equivalent to decimal 0.5.

=SUMPRODUCT(--(G2:G8000=0.5),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))


--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be processed
as
i am trying to filter out my data with respect to time? i tried
substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3 (i put
3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work in this
particular scenario? thanks in advance...

vjmc



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default COUNT(IF((,,,)) function

hi biff,

thanks for the feedback. what i am doing is, i am trying to filter out a
system generated statistics file in 30min intervals for 24hours. based on
your syntax given, this is an array right?

vlad

"T. Valko" wrote:

What does "12:00" represent? 12:00 AM or 12:00 PM ? If it's PM try this:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(Y2:Y8000<180000))

Note that if a cell in Y2:Y8000 is empty it will evaluate as being <180000
and could lead to incorrect results.

You can account for that by testing to make sure the cells do contain
numbers:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))

You can also shorten it a little and replace TIME(12,0,0) with 0.5. 12:00 PM
is equivalent to decimal 0.5.

=SUMPRODUCT(--(G2:G8000=0.5),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))


--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be processed
as
i am trying to filter out my data with respect to time? i tried
substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3 (i put
3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work in this
particular scenario? thanks in advance...

vjmc




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT(IF((,,,)) function

based on your syntax given, this is an array right?

Yes and no.

It's a formula that works on arrays but it doesn't have to be array entered
(CTRL, SHIFT, ENTER) but it'll work either way.

It COUNTS the instances where G2:G8000 = 12:00 PM and Y2:Y8000 <180000

--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi biff,

thanks for the feedback. what i am doing is, i am trying to filter out a
system generated statistics file in 30min intervals for 24hours. based on
your syntax given, this is an array right?

vlad

"T. Valko" wrote:

What does "12:00" represent? 12:00 AM or 12:00 PM ? If it's PM try this:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(Y2:Y8000<180000))

Note that if a cell in Y2:Y8000 is empty it will evaluate as being
<180000
and could lead to incorrect results.

You can account for that by testing to make sure the cells do contain
numbers:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))

You can also shorten it a little and replace TIME(12,0,0) with 0.5. 12:00
PM
is equivalent to decimal 0.5.

=SUMPRODUCT(--(G2:G8000=0.5),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))


--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false
results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be
processed
as
i am trying to filter out my data with respect to time? i tried
substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3 (i
put
3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work in
this
particular scenario? thanks in advance...

vjmc






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default COUNT(IF((,,,)) function

hi biff,

the syntax you gave is working. thanks a lot and i highly appreciate it!

best regards,

vlad

"T. Valko" wrote:

based on your syntax given, this is an array right?


Yes and no.

It's a formula that works on arrays but it doesn't have to be array entered
(CTRL, SHIFT, ENTER) but it'll work either way.

It COUNTS the instances where G2:G8000 = 12:00 PM and Y2:Y8000 <180000

--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi biff,

thanks for the feedback. what i am doing is, i am trying to filter out a
system generated statistics file in 30min intervals for 24hours. based on
your syntax given, this is an array right?

vlad

"T. Valko" wrote:

What does "12:00" represent? 12:00 AM or 12:00 PM ? If it's PM try this:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(Y2:Y8000<180000))

Note that if a cell in Y2:Y8000 is empty it will evaluate as being
<180000
and could lead to incorrect results.

You can account for that by testing to make sure the cells do contain
numbers:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))

You can also shorten it a little and replace TIME(12,0,0) with 0.5. 12:00
PM
is equivalent to decimal 0.5.

=SUMPRODUCT(--(G2:G8000=0.5),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))


--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false
results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be
processed
as
i am trying to filter out my data with respect to time? i tried
substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3 (i
put
3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work in
this
particular scenario? thanks in advance...

vjmc








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT(IF((,,,)) function

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi biff,

the syntax you gave is working. thanks a lot and i highly appreciate it!

best regards,

vlad

"T. Valko" wrote:

based on your syntax given, this is an array right?


Yes and no.

It's a formula that works on arrays but it doesn't have to be array
entered
(CTRL, SHIFT, ENTER) but it'll work either way.

It COUNTS the instances where G2:G8000 = 12:00 PM and Y2:Y8000 <180000

--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi biff,

thanks for the feedback. what i am doing is, i am trying to filter out
a
system generated statistics file in 30min intervals for 24hours. based
on
your syntax given, this is an array right?

vlad

"T. Valko" wrote:

What does "12:00" represent? 12:00 AM or 12:00 PM ? If it's PM try
this:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(Y2:Y8000<180000))

Note that if a cell in Y2:Y8000 is empty it will evaluate as being
<180000
and could lead to incorrect results.

You can account for that by testing to make sure the cells do contain
numbers:

=SUMPRODUCT(--(G2:G8000=TIME(12,0,0)),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))

You can also shorten it a little and replace TIME(12,0,0) with 0.5.
12:00
PM
is equivalent to decimal 0.5.

=SUMPRODUCT(--(G2:G8000=0.5),--(ISNUMBER(Y2:Y8000)),--(Y2:Y8000<180000))


--
Biff
Microsoft Excel MVP


"vjmc" wrote in message
...
hi all,

i am trying to duplicate the example in microsoft help about the
count(if((,,,)) function in my spreadsheet but it gives me false
results.
below is the syntax i am using:

{=COUNT(IF((G2:G8000="12:00")*('Y2:Y8000<"180000") ,Y2:Y8000))}

i am wondering if in my first argument G2:G800="12:00" would be
processed
as
i am trying to filter out my data with respect to time? i tried
substituting
text within that column and the syntax gave me the needed results.

{=COUNT(IF((G2:G8000="test")*('Y2:Y8000<"180000"), Y2:Y8000))} = 3
(i
put
3
entries of different values less than 180000)


so, bottom line, will using "time" as part of the syntax will work
in
this
particular scenario? thanks in advance...

vjmc








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
Another which count function? Johnny1r Excel Worksheet Functions 7 February 24th 08 03:52 AM
Count if function ub Excel Worksheet Functions 8 October 17th 07 04:22 PM
row count function Daniel Charts and Charting in Excel 1 June 14th 07 01:40 PM
using the count function barklek Excel Discussion (Misc queries) 3 August 22nd 05 01:00 PM
Count If Function Michele Excel Worksheet Functions 3 April 25th 05 02:31 PM


All times are GMT +1. The time now is 05:55 PM.

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"