Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default COUNT dates in ColumnY based on numbers in ColumnX

I need to count the number of dates in column Y based on whether or not a
number is entered in column X. I've tried several varieties of the COUNT
functions and keep getting errors.

Here is scenario: if columnX contains "1" in any of the cells, I need the
function to count the number of dates in columnY that correspond to those
cells from columnX with the number 1.

Thanks,
M.Moncrief
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT dates in ColumnY based on numbers in ColumnX

For the specific number of 1 in column X:

=SUMPRODUCT(--(X1:X10=1),--(ISNUMBER(Y1:Y10)))

For *ANY* number in column X:

=SUMPRODUCT(--(ISNUMBER(X1:X10)),--(ISNUMBER(Y1:Y10)))

Biff

"M.Moncrief" wrote in message
...
I need to count the number of dates in column Y based on whether or not a
number is entered in column X. I've tried several varieties of the COUNT
functions and keep getting errors.

Here is scenario: if columnX contains "1" in any of the cells, I need the
function to count the number of dates in columnY that correspond to those
cells from columnX with the number 1.

Thanks,
M.Moncrief



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default COUNT dates in ColumnY based on numbers in ColumnX

You'll need to use SUMPRODUCT, not COUNT, COUNTIF, or COUNTA for that task.

The COUNT functions work only on one set of criterias, not multiple sets
(same with SUMIF...)

Dave
--
Brevity is the soul of wit.


"M.Moncrief" wrote:

I need to count the number of dates in column Y based on whether or not a
number is entered in column X. I've tried several varieties of the COUNT
functions and keep getting errors.

Here is scenario: if columnX contains "1" in any of the cells, I need the
function to count the number of dates in columnY that correspond to those
cells from columnX with the number 1.

Thanks,
M.Moncrief

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default COUNT dates in ColumnY based on numbers in ColumnX

Perfect solution ~ thanks so very much. This was my first time to use the
discussion posts and I'm definitely hooked on looking here first when I have
a problem.

Again, much appreciated.

"T. Valko" wrote:

For the specific number of 1 in column X:

=SUMPRODUCT(--(X1:X10=1),--(ISNUMBER(Y1:Y10)))

For *ANY* number in column X:

=SUMPRODUCT(--(ISNUMBER(X1:X10)),--(ISNUMBER(Y1:Y10)))

Biff

"M.Moncrief" wrote in message
...
I need to count the number of dates in column Y based on whether or not a
number is entered in column X. I've tried several varieties of the COUNT
functions and keep getting errors.

Here is scenario: if columnX contains "1" in any of the cells, I need the
function to count the number of dates in columnY that correspond to those
cells from columnX with the number 1.

Thanks,
M.Moncrief




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default COUNT dates in ColumnY based on numbers in ColumnX

You're welcome. Thanks for the feedback!

Biff

"M.Moncrief" wrote in message
...
Perfect solution ~ thanks so very much. This was my first time to use the
discussion posts and I'm definitely hooked on looking here first when I
have
a problem.

Again, much appreciated.

"T. Valko" wrote:

For the specific number of 1 in column X:

=SUMPRODUCT(--(X1:X10=1),--(ISNUMBER(Y1:Y10)))

For *ANY* number in column X:

=SUMPRODUCT(--(ISNUMBER(X1:X10)),--(ISNUMBER(Y1:Y10)))

Biff

"M.Moncrief" wrote in message
...
I need to count the number of dates in column Y based on whether or not
a
number is entered in column X. I've tried several varieties of the
COUNT
functions and keep getting errors.

Here is scenario: if columnX contains "1" in any of the cells, I need
the
function to count the number of dates in columnY that correspond to
those
cells from columnX with the number 1.

Thanks,
M.Moncrief






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 sum up or count based on dates Syahira New Users to Excel 2 May 11th 06 10:53 AM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Unique numbers if between dates Jeremy Ellison Excel Worksheet Functions 3 December 9th 05 10:11 AM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM


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