#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Counting rows

I have a spreadsheet with several columns, two of which are dates (say
columns A & E). I want to count the numer of times column A is less than a
certain date (usually the end of a month) plus the number of times column E
is less than today. However, if column A and E are both less than today I
only want to count it once.
--
Robert K
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 136
Default Counting rows

One way


=SUMPRODUCT(--(A2:A20<DATE(2009,9,30)),--(E2:E20<TODAY()))


you can replace DATE(2009,9,30) which is hard coded (in this case eom sep09)
with a cell where you put the date in question

--


Regards,


Peo Sjoblom


"RobertK" wrote in message
...
I have a spreadsheet with several columns, two of which are dates (say
columns A & E). I want to count the numer of times column A is less than
a
certain date (usually the end of a month) plus the number of times column
E
is less than today. However, if column A and E are both less than today I
only want to count it once.
--
Robert K



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Counting rows

Thank you, but I'm not quite there, I think my question didn't explain it
that well. If column A meets the criteria it is counted once, if column E
meets the criteria it is only counted it the date in column A has not been
counted but it the date in column A has been coubted the date in column E
isn't.
--
Robert K


"Peo Sjoblom" wrote:

One way


=SUMPRODUCT(--(A2:A20<DATE(2009,9,30)),--(E2:E20<TODAY()))


you can replace DATE(2009,9,30) which is hard coded (in this case eom sep09)
with a cell where you put the date in question

--


Regards,


Peo Sjoblom


"RobertK" wrote in message
...
I have a spreadsheet with several columns, two of which are dates (say
columns A & E). I want to count the numer of times column A is less than
a
certain date (usually the end of a month) plus the number of times column
E
is less than today. However, if column A and E are both less than today I
only want to count it once.
--
Robert K




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Counting rows

Use a helper column say D with the below formula in cell D1.Copy the formula
down as required and once done you can sum that up =SUM(D:D) to get the
answer.

=IF(COUNTIF(A1:B1,"<" & $C$1),1,0)

If this post helps click Yes
---------------
Jacob Skaria


"RobertK" wrote:

Thank you, but I'm not quite there, I think my question didn't explain it
that well. If column A meets the criteria it is counted once, if column E
meets the criteria it is only counted it the date in column A has not been
counted but it the date in column A has been coubted the date in column E
isn't.
--
Robert K


"Peo Sjoblom" wrote:

One way


=SUMPRODUCT(--(A2:A20<DATE(2009,9,30)),--(E2:E20<TODAY()))


you can replace DATE(2009,9,30) which is hard coded (in this case eom sep09)
with a cell where you put the date in question

--


Regards,


Peo Sjoblom


"RobertK" wrote in message
...
I have a spreadsheet with several columns, two of which are dates (say
columns A & E). I want to count the numer of times column A is less than
a
certain date (usually the end of a month) plus the number of times column
E
is less than today. However, if column A and E are both less than today I
only want to count it once.
--
Robert K




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Counting rows

Thank you but I'm trying to avoid extra columns since the data runs over 1000
rows. I did get another suggestion from a different post that worked.
=SUMPRODUCT(((ISNUMBER(A1:A10)*(A1:A10<$C$1)+(ISNU MBER(B1:B10)*(B1:B10<$C$1))0)*1))

--
Robert K


"Jacob Skaria" wrote:

Use a helper column say D with the below formula in cell D1.Copy the formula
down as required and once done you can sum that up =SUM(D:D) to get the
answer.

=IF(COUNTIF(A1:B1,"<" & $C$1),1,0)

If this post helps click Yes
---------------
Jacob Skaria


"RobertK" wrote:

Thank you, but I'm not quite there, I think my question didn't explain it
that well. If column A meets the criteria it is counted once, if column E
meets the criteria it is only counted it the date in column A has not been
counted but it the date in column A has been coubted the date in column E
isn't.
--
Robert K


"Peo Sjoblom" wrote:

One way


=SUMPRODUCT(--(A2:A20<DATE(2009,9,30)),--(E2:E20<TODAY()))


you can replace DATE(2009,9,30) which is hard coded (in this case eom sep09)
with a cell where you put the date in question

--


Regards,


Peo Sjoblom


"RobertK" wrote in message
...
I have a spreadsheet with several columns, two of which are dates (say
columns A & E). I want to count the numer of times column A is less than
a
certain date (usually the end of a month) plus the number of times column
E
is less than today. However, if column A and E are both less than today I
only want to count it once.
--
Robert K





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 rows??? Lockedhart Excel Discussion (Misc queries) 6 July 30th 08 06:26 PM
Counting characters in multiple rows when rows meet specific criteria news.virginmedia.com Excel Worksheet Functions 3 June 28th 08 09:03 PM
Counting Rows CLamar Excel Discussion (Misc queries) 1 June 15th 06 04:05 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting Rows Sona Excel Discussion (Misc queries) 0 May 25th 05 03:19 PM


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