Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default criteria in multiple columns

I am trying to get a count of rows where the date column has a specific date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default criteria in multiple columns

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default criteria in multiple columns

The =SUMPRODUCT works perfectly. You are the best. Thank you so much!

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default criteria in multiple columns

You're welcome. Thanks for the feedback!

Biff

"mbparks" wrote in message
...
The =SUMPRODUCT works perfectly. You are the best. Thank you so much!

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have
taken
place.

Please help.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default criteria in multiple columns

Can you please tell me how to make this work with a date range (ex: 3/1/07 -
3/31/07) also?

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default criteria in multiple columns

Try one of these:

=SUMPRODUCT(--(F1:F10=DATE(2007,3,1)),--(F1:F10<=DATE(2007,3,31)),--(L1:L10="X"))

Or:

A1 = start date 3/1/2007
B1 = end date 3/31/2007
C1 = X

=SUMPRODUCT(--(F1:F10=A1),--(F1:F10<=B1),--(L1:L10=C1))

Biff

"mbparks" wrote in message
...
Can you please tell me how to make this work with a date range (ex:
3/1/07 -
3/31/07) also?

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have
taken
place.

Please help.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default criteria in multiple columns

Once again you are a lifesaver! Thanks

"T. Valko" wrote:

Try one of these:

=SUMPRODUCT(--(F1:F10=DATE(2007,3,1)),--(F1:F10<=DATE(2007,3,31)),--(L1:L10="X"))

Or:

A1 = start date 3/1/2007
B1 = end date 3/31/2007
C1 = X

=SUMPRODUCT(--(F1:F10=A1),--(F1:F10<=B1),--(L1:L10=C1))

Biff

"mbparks" wrote in message
...
Can you please tell me how to make this work with a date range (ex:
3/1/07 -
3/31/07) also?

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(F1:F10=DATE(2007,1,1)),--(L1:L10="X"))

Or, use cells to hold the criteria:

A1 = some date like 1/1/2007
B1 = X

=SUMPRODUCT(--(F1:F10=A1),--(L1:L10=B1))

Biff

"mbparks" wrote in message
...
I am trying to get a count of rows where the date column has a specific
date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have
taken
place.

Please help.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default criteria in multiple columns

One way:
=SUMPRODUCT(($F$2:$F$100=--"01-Jan-2007")*($L$2:$L$100="X"))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"mbparks" wrote:
I am trying to get a count of rows where the date column has a specific date
and a second column is marked with an "X".
Example:
Col F is a column of dates
Col L is marked with an "X" by the end user if certain events have taken
place.

Please help.

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
SUMIF, One criteria multiple columns O_o Excel Discussion (Misc queries) 4 November 8th 06 12:39 AM
SUMIF - multiple criteria in different columns SUMIF Multiple Criteria in diff columns Excel Worksheet Functions 1 September 22nd 06 04:06 PM
Countif using criteria in multiple columns ImaGina Excel Worksheet Functions 1 September 14th 06 07:31 PM
SUMIF with multiple criteria, by columns Question Excel Worksheet Functions 3 March 29th 06 05:27 AM
How can I count items in multiple columns with different criteria. ChileRed Excel Worksheet Functions 0 March 21st 06 07:15 PM


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