#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Fromula

Would like to set up a formula that returns a value if the date is 12/31/??
and another value if it is any other day of the year?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Fromula

Hi

One way
=IF(TEXT(A1,"MMDD")="1231","yes","no")

Substitute whatever you wish for "yes" and "no"

--
Regards

Roger Govier


"tboy" wrote in message
...
Would like to set up a formula that returns a value if the date is
12/31/??
and another value if it is any other day of the year?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Fromula

=IF((MONTH(TODAY())=12)*(DAY(TODAY())=31),1,0)
will return 1 on Dec 31
will return 0 otherwise
--
Gary''s Student - gsnu200725
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
Array Fromula Pmxgs Excel Worksheet Functions 6 November 1st 06 10:05 PM
How can I write a fromula to subtract 1/4 from 1/2 and so on? Excell novice Excel Discussion (Misc queries) 5 September 17th 06 12:41 AM
how do i lock a cell with a fromula? Elin Excel Discussion (Misc queries) 1 August 8th 06 09:36 PM
Corporated into the same fromula please. Steved Excel Worksheet Functions 5 October 12th 05 12:10 AM
Need a fromula comotoman Excel Discussion (Misc queries) 3 October 3rd 05 05:00 PM


All times are GMT +1. The time now is 02:04 AM.

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

About Us

"It's about Microsoft Excel"