Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default FORMATTING DATES IN FORMULAS

I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE. For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default FORMATTING DATES IN FORMULAS

Hi,

Try:

=IF(AND(DAY(A1)=30,MONTH(A1)=6),TRUE,FALSE)

HTH
Jean-Guy

"The BriGuy" wrote:

I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE. For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default FORMATTING DATES IN FORMULAS

With listed date in A1, try:

=TEXT(A1,"mmdd")=TEXT(TODAY(),"mmdd")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"The BriGuy" <The wrote in message
...
I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE.

For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then

this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 698
Default FORMATTING DATES IN FORMULAS

With
A2: (a date)

To return TRUE if the Month=June and the Day=30
try this:
B2: =TEXT(A2,"mmdd")="0630"

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"The BriGuy" wrote:

I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE. For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default FORMATTING DATES IN FORMULAS

If you want a TRUE/FALSE answer you don't need the IF() function.
Just use =AND(DAY(A1)=30,MONTH(A1)=6)
--
David Biddulph

"pinmaster" wrote in message
...
Hi,

Try:

=IF(AND(DAY(A1)=30,MONTH(A1)=6),TRUE,FALSE)

HTH
Jean-Guy

"The BriGuy" wrote:

I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE.
For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then
this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default FORMATTING DATES IN FORMULAS

I modified the

=IF(AND(DAY(A1)=30,MONTH(A1)=6),TRUE,FALSE)

slightly and used an OR instead to cover seberal dates but thisworked great.

I ended up with:

=IF(OR(MONTH(L6)=3,MONTH(L6)=6,MONTH(L6)=9,MONTH(L 6)=12),AVERAGE(M6:M8),"")

Thanks


"pinmaster" wrote:

Hi,

Try:

=IF(AND(DAY(A1)=30,MONTH(A1)=6),TRUE,FALSE)

HTH
Jean-Guy

"The BriGuy" wrote:

I have a coumn that I simply put dates into. What I want to do is if the
month and day = certain criteris then TRUE results, if not then FALSE. For
exaple the date listed is 6/30/06 so if the date is 6/30/any year then this
is a TRUE statement.

I know this is probably simple but I seldom use EXCEL.

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates and formulas Office Jnr Excel Discussion (Misc queries) 7 December 11th 06 02:18 PM
USING DATES IN FORMULAS Carlos Benavides Excel Discussion (Misc queries) 2 October 28th 05 01:01 AM
Dates Not Formatting as Dates awacs Excel Worksheet Functions 4 September 13th 05 10:35 PM
Using dates in formulas cheryl Excel Worksheet Functions 1 September 9th 05 05:38 PM
help with formulas and dates??? n0 h4ck1ng Excel Discussion (Misc queries) 9 August 15th 05 08:02 AM


All times are GMT +1. The time now is 06:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"