View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default How do I write an If(And( function using dates as my logical test?

=IF(AND(6/30/2009A1,7/30/2009<=A1),"July")

Can't tell from your formula why you're using those boundaries. If you want
the month name based on any date:

=TEXT(A1,"mmmm")


--
Biff
Microsoft Excel MVP


"mclovin" wrote in message
...
I'm trying to write a formula which would help me identify all dates
within a
month and give me a result that says "July" or "Aug" or whatever.
This is the formula that I tried but didn't work:
=IF(AND(6/30/2009A1,7/30/2009<=A1),"July")

A B
1 6/30/2009 July
2 7/4/2009 July
3 7/15/2009 July