Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Manni
 
Posts: n/a
Default Counting data columns with dates

Column A has dates
Column B has dates

I need to count the number of times that there is an entry in column B
within a date range (I am looking to do this by quarter) and an entry in
column A within that same date range. The data needs to be imbedded into the
formula rather than a seperate control cell. I have tried the following
formula but am not getting the right answer:

=SUMPRODUCT(--(A10:A40<4/1/6),(--(B10:B40<4/1/6)))

The answer to by formula should be 2 but this is producing 24. Note that
the data is on another worksheet.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Counting data columns with dates

Try this but note that blank columns will "pass" the the test:

=SUMPRODUCT(--(A10:A40<--"2006/04/01"),(--(B10:B40<--"2006/04/01")))

To ignore blanks:

=SUMPRODUCT(--(A10:A40<--"2006/04/01"),--(A10:A40<""),--(B10:B40<--"2006/04/01"),--(B10:B40<""))

HTH

"Manni" wrote:

Column A has dates
Column B has dates

I need to count the number of times that there is an entry in column B
within a date range (I am looking to do this by quarter) and an entry in
column A within that same date range. The data needs to be imbedded into the
formula rather than a seperate control cell. I have tried the following
formula but am not getting the right answer:

=SUMPRODUCT(--(A10:A40<4/1/6),(--(B10:B40<4/1/6)))

The answer to by formula should be 2 but this is producing 24. Note that
the data is on another worksheet.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Manni
 
Posts: n/a
Default Counting data columns with dates

It works!!! Thank you!

"Toppers" wrote:

Try this but note that blank columns will "pass" the the test:

=SUMPRODUCT(--(A10:A40<--"2006/04/01"),(--(B10:B40<--"2006/04/01")))

To ignore blanks:

=SUMPRODUCT(--(A10:A40<--"2006/04/01"),--(A10:A40<""),--(B10:B40<--"2006/04/01"),--(B10:B40<""))

HTH

"Manni" wrote:

Column A has dates
Column B has dates

I need to count the number of times that there is an entry in column B
within a date range (I am looking to do this by quarter) and an entry in
column A within that same date range. The data needs to be imbedded into the
formula rather than a seperate control cell. I have tried the following
formula but am not getting the right answer:

=SUMPRODUCT(--(A10:A40<4/1/6),(--(B10:B40<4/1/6)))

The answer to by formula should be 2 but this is producing 24. Note that
the data is on another worksheet.

Thanks!

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
Drawing data from specific columns of a dynamic range Darren Setting up and Configuration of Excel 3 March 3rd 06 06:53 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How do i copy columns of data in notepad into microsoft excel? JP New Users to Excel 2 February 10th 05 09:47 PM
How do i copy columns of data in notepad into excel? JJ Excel Discussion (Misc queries) 1 February 10th 05 09:21 PM


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