Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Counting non-zero cells based on date

Can someone please help with this? I can't seem to figure it out. Say I
have one column with a list of dates and another with values that are either
zero or non-zero. How do I count the number of nonzero cells in the second
column after today?

For example:
Column B Column C
3/20/2007 6.5
3/21/2007 0.0
3/22/2007 3.2
3/23/2007 7.8

If today is 3/20/2007 I want Excel to only count the values in Column C for
3/21-3/23 that are non-zero
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Counting non-zero cells based on date

try
=sumproduct(--(B1:B100today()),--(C1:C100<0))

"Rochelle" wrote:

Can someone please help with this? I can't seem to figure it out. Say I
have one column with a list of dates and another with values that are either
zero or non-zero. How do I count the number of nonzero cells in the second
column after today?

For example:
Column B Column C
3/20/2007 6.5
3/21/2007 0.0
3/22/2007 3.2
3/23/2007 7.8

If today is 3/20/2007 I want Excel to only count the values in Column C for
3/21-3/23 that are non-zero

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Counting non-zero cells based on date

Thanks a lot! That worked. Now I just have to figure out why it worked lol

"Rochelle" wrote:

Can someone please help with this? I can't seem to figure it out. Say I
have one column with a list of dates and another with values that are either
zero or non-zero. How do I count the number of nonzero cells in the second
column after today?

For example:
Column B Column C
3/20/2007 6.5
3/21/2007 0.0
3/22/2007 3.2
3/23/2007 7.8

If today is 3/20/2007 I want Excel to only count the values in Column C for
3/21-3/23 that are non-zero

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
counting Ps and Ls based on the date in another row. Gary Excel Worksheet Functions 2 February 8th 07 06:58 PM
counting cells based on formatting dwae2000 Excel Discussion (Misc queries) 9 July 13th 06 02:20 AM
Counting based on other cells contents... George Excel Discussion (Misc queries) 3 November 8th 05 02:33 PM
Complicated counting of cells (based on other cells contents) George Excel Worksheet Functions 3 November 7th 05 06:39 PM
Counting unique records based on date range aspAddict Excel Worksheet Functions 3 October 26th 05 08:12 PM


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

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"