[mso] Re: FW: CountIF help

  • From: "Linda F. Johnson" <linda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 15 Sep 2003 09:36:42 -0400

Obviously you DID have your morning coffee Ray LOL

The other thing you can do, Colin, is put =TODAY() in some other cell and
hide that cell..let's say you put it in F20

Then the formula could be =COUNTIF(A1:F4,"<=F20")

Hey Ray...yours works great...but I'm not sure I understand it.  Why is <=
inside quotes and the Today formula is not?


Linda F. Johnson, M.A., MOS
Linda's Computer Stop
http://personal-computer-tutor.com
Free e-Books, Newsletter, and tutorials


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Ray Blake
Sent: Monday, September 15, 2003 9:27 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] FW: CountIF help

I just tested this myself, and it still doesn't work, but I've fixed it.

My starting point for the formula was this:

=COUNTIF(A1:A4,"<=TODAY()")

Just like you, I was expecting some hits, but got a zero. I started thinking
about the effect of putting a formula inside a string, and realised that it
wouldn't work that way. So I built a way of resolving the function outside
the string and then tagging the result onto it, like this:

=COUNTIF(A1:A4,"<="&TODAY())

This version actually works like you want, Colin.

Ray Blake

-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx]
Sent: 15 September 2003 13:57
To: 'mso@xxxxxxxxxxxxx'
Subject: RE: [mso] CountIF help

Colin,

The obvious thing you're missing is far from obvious!

For some reason, Excel treats TODAY as a function rather than a variable, so
it always needs to be followed by an empty set of brackets,
thus:

        TODAY()

Ray Blake



*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx
with the word "unsubscribe" (without the quotes) in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: