Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Count Inbetween dates

Hi

How do I show that a date in a row is inbetween a date. Say: I have a cell
called 'Datecell' and I want to count each row with a date in the past 12
months of this date. How would I do this? I originally had
=IF(DateCell-365<=E2,"Yes"). Although this counts everything in the past 12
months and gives it a 'Yes', it also counts everything after the date in the
'DateCell' and not inbetween the two dates.

Anyone know a solution?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Count Inbetween dates

Hi,

Try this

=SUMPRODUCT((A1:A100<=TODAY())*(A1:A100=DATE(YEAR (TODAY())-1,MONTH(TODAY()),DAY(TODAY()))))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dave" wrote:

Hi

How do I show that a date in a row is inbetween a date. Say: I have a cell
called 'Datecell' and I want to count each row with a date in the past 12
months of this date. How would I do this? I originally had
=IF(DateCell-365<=E2,"Yes"). Although this counts everything in the past 12
months and gives it a 'Yes', it also counts everything after the date in the
'DateCell' and not inbetween the two dates.

Anyone know a solution?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Count Inbetween dates

Hi Mike

I need the formula to return a Yes statement as in the previous formula so I
need =IF(DateCell-365<=E2,"Yes") but to count inbetween a date as opposed to
_365.

Thanks

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((A1:A100<=TODAY())*(A1:A100=DATE(YEAR (TODAY())-1,MONTH(TODAY()),DAY(TODAY()))))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dave" wrote:

Hi

How do I show that a date in a row is inbetween a date. Say: I have a cell
called 'Datecell' and I want to count each row with a date in the past 12
months of this date. How would I do this? I originally had
=IF(DateCell-365<=E2,"Yes"). Although this counts everything in the past 12
months and gives it a 'Yes', it also counts everything after the date in the
'DateCell' and not inbetween the two dates.

Anyone know a solution?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Count Inbetween dates

It's still unclear exactly what you want, but here's an example of how you
do "in between":
=IF(and(DateCell<E2,DateCell-365E2),"Yes",false)

Regards,
Fred

"Dave" wrote in message
...
Hi Mike

I need the formula to return a Yes statement as in the previous formula so
I
need =IF(DateCell-365<=E2,"Yes") but to count inbetween a date as opposed
to
_365.

Thanks

"Mike H" wrote:

Hi,

Try this

=SUMPRODUCT((A1:A100<=TODAY())*(A1:A100=DATE(YEAR (TODAY())-1,MONTH(TODAY()),DAY(TODAY()))))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Dave" wrote:

Hi

How do I show that a date in a row is inbetween a date. Say: I have a
cell
called 'Datecell' and I want to count each row with a date in the past
12
months of this date. How would I do this? I originally had
=IF(DateCell-365<=E2,"Yes"). Although this counts everything in the
past 12
months and gives it a 'Yes', it also counts everything after the date
in the
'DateCell' and not inbetween the two dates.

Anyone know a solution?

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
COUNT INBETWEEN A DATE RANGE Dave Excel Discussion (Misc queries) 4 March 18th 10 04:10 PM
dates inbetween nba Excel Discussion (Misc queries) 3 October 13th 09 04:38 AM
Count Dates between Dates exclude Text Ken Excel Discussion (Misc queries) 3 April 8th 09 07:59 PM
NEED TO SHOW EACH DAY INBETWEEN TWO DATES, help please lost soul Excel Worksheet Functions 2 September 13th 06 02:23 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


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