Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count only days equal to or prior to today Excel

Status
Not open for further replies.

aprunkard

Technical User
Oct 29, 2004
52
US
I know this has got to be simple but I am pulling my hair out trying...

I want to only count dates that are equal to today and prior to today.

My Dates start in A4 and whenever there is an appointment set a line is added.
On a separate sheet I want to count all of the appointments that are for today and before. (Making it a month total)
I tried the formula:
=COUNTIF(January!A4:A65536,<=$A$1) (A1 being "TODAY()")
But Excel wants to put my criteria in quotes or it won't except it.

Anyone have any ideas?

Thanks - Amanda
 

hi,
[tt]
=sumproduct((January!A4:A65536<=$A$1)*1)
[/tt]


Skip,

[glasses] [red]Be Advised![/red] The Vinyards of Texas have produced a wine with diuretic dimishment and urethric relief...
Pinot More![tongue]
 
Okay I used:
=COUNTIF(January!A4:A65536,"<="&Today)

Which works great...

But now I am trying to use a countif statement with multiple criteria. I have tried this but, of course, it's wrong:

=SUMPRODUCT(--(January!A4:A3000,"<="&Today),--(January!D4:D3000,='Information Pull'!E4))
I got this off of Microsoft's website.
 
Code:
=SUMPRODUCT((January!A7:A3000<=TODAY())*(January!D7:D3000='Information Pull'!E4))

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top