Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Drawing data from specific columns of a dynamic range | Setting up and Configuration of Excel | |||
Excel Macro to Copy & Paste | Excel Worksheet Functions | |||
Help PLEASE! Not sure what answer is: Match? Index? Other? | Excel Worksheet Functions | |||
How do i copy columns of data in notepad into microsoft excel? | New Users to Excel | |||
How do i copy columns of data in notepad into excel? | Excel Discussion (Misc queries) |