|
-
April 4th, 2006, 01:35 PM
#2
AFAIK, the criteria in COUNTIF function only supports number and text. That is, criteria like "> today()" and "> 4/4/2006" are not supported (not rejected, but simply return wrong answer).
Assumption:
The range containing expiration dates is G2:G116
First, add a (hidden) K2:K116 range with these series of formula
= AND(G2 > TODAY()+7, G2 < TODAY()+21)
...
= AND(G116 > TODAY()+7, G116 < TODAY()+21)
which returns TRUE or FALSE.
Now you can set up a cell with this formula
= COUNTIF(K2:K116, TRUE)
Hope you get the idea.
Peace always,
<jdenny>
Always listen to experts. They\'ll tell you what can\'t be done and why. Then go and do it. -- Robert Heinlein
I\'m basically a very lazy person who likes to get credit for things other people actually do. -- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|