#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default COUNTIF

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default COUNTIF

Why are you counting column A if your criteria is column G?

Have to convert the date to a serial. (1-1-09 = 39814 [can be found easily
in XL by typing a date, then formatting cell as number])
=COUNTIF('Consolidated Sheet'!$G:$G,"39814")

If you're actually needing some criteria in A, you can use COUNTIFS if you
hx XL 2007, or just use SUMPRODUCT like this
=SUMPRODUCT(('Consolidated Sheet'!A1:A65536="My Criteria")*('Consolidated
Sheet'!G1:G6553639814))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Thanks Sheeloo for prompt support.

However it counted the all records, not only specified and met the condition
but all those records that were in A:A column.

Do you have alternative suggestions.


--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)
may be this additional info would enable you to help me.

Ward Date 1 Date 2
1 2008-11-10 2009-11-10
1 2008-11-27 2009-11-27
1 2008-11-28 2009-11-28
1 2008-12-09 2009-12-09
2 2008-12-11 2008-12-11
2 2008-12-23 2008-12-23
3 2008-12-24 2008-12-24
4 2008-12-25 2008-12-25

The task is to count Ward No (1-4) how many times it occurs in the specified
date in Column Date 1 and Date 2
--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default COUNTIF

Use
=COUNTIF('Consolidated Sheet'!G:G,""&DATE(2009,1,1))

It has nothing to do with values in Col A...
Will give you the count in G where date is 1/1/2009

"observer" wrote:

Thanks Sheeloo for prompt support.

However it counted the all records, not only specified and met the condition
but all those records that were in A:A column.

Do you have alternative suggestions.


--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Thanks for prompt help.

Sorry, it should be Column B in the posted data instead of G:.

However, I have to count how many times the specified ward in Column A
occurs in specified time that is recorded in Column B.

regards,
Toronto


"Luke M" wrote:

Why are you counting column A if your criteria is column G?

Have to convert the date to a serial. (1-1-09 = 39814 [can be found easily
in XL by typing a date, then formatting cell as number])
=COUNTIF('Consolidated Sheet'!$G:$G,"39814")

If you're actually needing some criteria in A, you can use COUNTIFS if you
hx XL 2007, or just use SUMPRODUCT like this
=SUMPRODUCT(('Consolidated Sheet'!A1:A65536="My Criteria")*('Consolidated
Sheet'!G1:G6553639814))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Thanks for your kind efforts anyway.

It has to count value in Column A in a specified time that is recorded in
Column B.

regards,
--
Toronto


"Sheeloo" wrote:

Use
=COUNTIF('Consolidated Sheet'!G:G,""&DATE(2009,1,1))

It has nothing to do with values in Col A...
Will give you the count in G where date is 1/1/2009

"observer" wrote:

Thanks Sheeloo for prompt support.

However it counted the all records, not only specified and met the condition
but all those records that were in A:A column.

Do you have alternative suggestions.


--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default COUNTIF

Try
=SUMPRODUCT(--(A1:A100=1),--(B1:B100DATE(2009,1,1)))

It will you the count of dates in Col B greater than 1/1/2009 with 1 in Col
A in the same row...

"observer" wrote:

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)
may be this additional info would enable you to help me.

Ward Date 1 Date 2
1 2008-11-10 2009-11-10
1 2008-11-27 2009-11-27
1 2008-11-28 2009-11-28
1 2008-12-09 2009-12-09
2 2008-12-11 2008-12-11
2 2008-12-23 2008-12-23
3 2008-12-24 2008-12-24
4 2008-12-25 2008-12-25

The task is to count Ward No (1-4) how many times it occurs in the specified
date in Column Date 1 and Date 2
--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default COUNTIF

Sorry. It did not work.
--
Toronto


"Sheeloo" wrote:

Try
=SUMPRODUCT(--(A1:A100=1),--(B1:B100DATE(2009,1,1)))

It will you the count of dates in Col B greater than 1/1/2009 with 1 in Col
A in the same row...

"observer" wrote:

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)
may be this additional info would enable you to help me.

Ward Date 1 Date 2
1 2008-11-10 2009-11-10
1 2008-11-27 2009-11-27
1 2008-11-28 2009-11-28
1 2008-12-09 2009-12-09
2 2008-12-11 2008-12-11
2 2008-12-23 2008-12-23
3 2008-12-24 2008-12-24
4 2008-12-25 2008-12-25

The task is to count Ward No (1-4) how many times it occurs in the specified
date in Column Date 1 and Date 2
--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default COUNTIF

Col B has dates 1/1/2009? Is it a date column or it is formatted as TEXT?

Format it as date...

enter 1/2/2009 in a couple of cells and see...

Download the sample.xls from http://wikisend.com/download/496756/Sample.xls

where I have used the formula
Cell with FORMULA =SUMPRODUCT(--(A1:A100=1),--(C1:C100DATE(2009,1,1)))
Counting dates 1/1/2009 in COL C

"observer" wrote:

Sorry. It did not work.
--
Toronto


"Sheeloo" wrote:

Try
=SUMPRODUCT(--(A1:A100=1),--(B1:B100DATE(2009,1,1)))

It will you the count of dates in Col B greater than 1/1/2009 with 1 in Col
A in the same row...

"observer" wrote:

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)
may be this additional info would enable you to help me.

Ward Date 1 Date 2
1 2008-11-10 2009-11-10
1 2008-11-27 2009-11-27
1 2008-11-28 2009-11-28
1 2008-12-09 2009-12-09
2 2008-12-11 2008-12-11
2 2008-12-23 2008-12-23
3 2008-12-24 2008-12-24
4 2008-12-25 2008-12-25

The task is to count Ward No (1-4) how many times it occurs in the specified
date in Column Date 1 and Date 2
--
Toronto


"Sheeloo" wrote:

Enter the date 1/1/2009 in G1 of 'Consolidated Sheet' and use
=COUNTIF('Consolidated Sheet'!A:A,""&'Consolidated Sheet'!$G$1)

"observer" wrote:

Request for Help

Trying to count DATA in A:A
Condition is that the DATE that is later than 01-01-2009 in G:G
with this and lots of variations of the following formul:

=COUNTIF('Consolidated Sheet'!$A:$A,'Consolidated Sheet'!$G:$G=("01
January 2009")1)


Toronto

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
COUNTIF HELP Excel Discussion (Misc queries) 10 June 29th 06 01:53 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 08:21 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"