Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data (22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1

A B C D
1 2009 1
2
3
4 1/1/08 22
5 2/1/08 143
6 3/1/09 46

Thank you for any help.
M. E.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

Try this:

=SUMPRODUCT(--(YEAR(A4:A1000)=A1),--(D4:D1000<""))

--
Biff
Microsoft Excel MVP


wrote in message
...
Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data (22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1

A B C D
1 2009 1
2
3
4 1/1/08 22
5 2/1/08 143
6 3/1/09 46

Thank you for any help.
M. E.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

On Jul 15, 8:38*pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(YEAR(A4:A1000)=A1),--(D4:D1000<""))

--
Biff
Microsoft Excel MVP

wrote in message

...



Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data *(22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1


* * * * *A * * * * B * * * * * * *C * * * * * *D
1 * * *2009 * * * * * * * * * * * * * * * * * * 1
2
3
4 * 1/1/08 * * * * * * * * * * * * * * * * * * *22
5 * 2/1/08 * * * * * * * * * * * * * * * * * *143
6 * 3/1/09 * * * * * * * * * * * * * * * * * * 46


Thank you for any help.
M. E.- Hide quoted text -


- Show quoted text -


Thanks.
Works like a charm.
Mike
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Mike" wrote in message
...
On Jul 15, 8:38 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(YEAR(A4:A1000)=A1),--(D4:D1000<""))

--
Biff
Microsoft Excel MVP

wrote in message

...



Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data (22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1


A B C D
1 2009 1
2
3
4 1/1/08 22
5 2/1/08 143
6 3/1/09 46


Thank you for any help.
M. E.- Hide quoted text -


- Show quoted text -


Thanks.
Works like a charm.
Mike


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

On Jul 15, 11:29*pm, "T. Valko" wrote:
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP

"Mike" wrote in message

...
On Jul 15, 8:38 pm, "T. Valko" wrote:





Try this:


=SUMPRODUCT(--(YEAR(A4:A1000)=A1),--(D4:D1000<""))


--
Biff
Microsoft Excel MVP


wrote in message


....


Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data (22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1


A B C D
1 2009 1
2
3
4 1/1/08 22
5 2/1/08 143
6 3/1/09 46


Thank you for any help.
M. E.- Hide quoted text -


- Show quoted text -


Thanks.
Works like a charm.
Mike- Hide quoted text -

- Show quoted text -


How could you do the same thing but for months? The formula that I
used is =SUMPRODUCT(--(MONTH('Invoice List 2009'!C75:C420)='Invoice
List 2009'!C302),--('Invoice List 2009'!B75:B420<"")). Basically it's
the same idea that Mike has but I want the non blank cells in column B
counted if the month formula contains the month of August. The cell
'Invoice List 2009'!C302 is August 1, 2009 in the proper date format.

Any advice?


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count Non-Blank Cells in Column If a Reference Criteria Met.

The cell 'Invoice List 2009'!C302 is August 1, 2009
in the proper date format.


Try this:

=SUMPRODUCT(--(MONTH('Invoice List 2009'!C75:C420)=MONTH('Invoice
List 2009'!C302)),--('Invoice List 2009'!B75:B420<""))

--
Biff
Microsoft Excel MVP


"CLIWIL" wrote in message
...
On Jul 15, 11:29 pm, "T. Valko" wrote:
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP

"Mike" wrote in message

...
On Jul 15, 8:38 pm, "T. Valko" wrote:





Try this:


=SUMPRODUCT(--(YEAR(A4:A1000)=A1),--(D4:D1000<""))


--
Biff
Microsoft Excel MVP


wrote in message


...


Hi.
Cells A4:A1000 contain Dates (1/1/08, 2/1/08, 3/1/09...)
Cells D4:D1000 contain Data (22, 143, 46,...)
Cell A1 Will contain my search criteria (2009...)
In Cell D1 I need to have a count of Non-Blank Cells D4:D1000 that are
in the year of Cell A1


A B C D
1 2009 1
2
3
4 1/1/08 22
5 2/1/08 143
6 3/1/09 46


Thank you for any help.
M. E.- Hide quoted text -


- Show quoted text -


Thanks.
Works like a charm.
Mike- Hide quoted text -

- Show quoted text -


How could you do the same thing but for months? The formula that I
used is =SUMPRODUCT(--(MONTH('Invoice List 2009'!C75:C420)='Invoice
List 2009'!C302),--('Invoice List 2009'!B75:B420<"")). Basically it's
the same idea that Mike has but I want the non blank cells in column B
counted if the month formula contains the month of August. The cell
'Invoice List 2009'!C302 is August 1, 2009 in the proper date format.

Any advice?


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
How to reference last non-blank cell value from a column cells? Hal J Excel Worksheet Functions 2 May 3rd 09 07:19 PM
Count no. of nonblank cells in one column based on criteria of ano Beach Lover Excel Discussion (Misc queries) 9 February 19th 07 03:39 PM
count non blank cells with criteria UT Excel Discussion (Misc queries) 5 April 25th 06 07:37 PM
COUNT NON-BLANK CELLS WITH REFERENCE TO ANOTHER COLUMN carricka Excel Worksheet Functions 1 May 6th 05 04:50 PM
count non blank cells which meet criteria in another column cmarsh5035 Excel Worksheet Functions 2 February 16th 05 04:32 PM


All times are GMT +1. The time now is 06:09 AM.

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

About Us

"It's about Microsoft Excel"