![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 4
|
Please help - I am trying to take a range of dates and count the number of dates greater than a date less three months.
If I use =COUNTIF('SPR List'!E:E,">17/02/02") it works ('SPR List'!E:E contains list of dates) However, I want to carry this out without hard coding the date. =EDATE(TODAY(),-3) gives me the date I want but I cannot combine the two commands. Is this possible ?? Please help - it's driving me mad !!!! |
|
|
|
|
|
#2 |
|
New Member
Join Date: May 2002
Posts: 34
|
Perhaps VB will help?
i.e. Add a Sub in the open document event to enter the value of the date you want into the 'countif' cell? |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=COUNTIF('SPR List'!E:E,">"&EDATE(TODAY(),-3)) |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 4
|
Thanks...it works.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|