LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Date fomula not working

Did you try this formula (which I posted earlier)?

=A2-365-(DAY(A2)<DAY(A2-365))

I cannot find a way to not make it work, although you may want to use the
formula set up this way...

=IF(A2="","",A2-365-(DAY(A2)<DAY(A2-365)))

so that it won't error out for empty cells (if you decide to copy it down in
anticipation of future date entries). Give it a try.

--
Rick (MVP - Excel)


"FangYR" wrote in message
...
I am back again.
Thanks to all of you. I tried according to all your advices but it did'nt
work as it did before, even when trying on in older worksheets which
worked
fine, then. I thing somthing "add-ons" sre missing. Let me try on that,
then
come back to you all.
Thanks again
--
Regards
FangYR
Malaysia


"Fred Smith" wrote:

Good one, Rick.

Regards,
Fred.

"Rick Rothstein" wrote in message
...
I'm pretty sure this simpler (than the original) non-ATP formula will
also
work...

=A2-365-(DAY(A2)<DAY(A2-365))

--
Rick (MVP - Excel)


"Shane Devenshire" wrote in
message ...
Hi,

The function is calculating the date one year prior with and
adjustment
for
leap years. It works as written.

However you might consider using the following which does exactly the
same
thing:

=EDATE(A2,-12)

In Excel 2003 or earlier you will need to attach the ATP - Tools,
Add-Ins,
and check Analysis ToolPak. In 2007 nothing to do.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"FangYR" wrote:

I have use this last year, it's fine until now. the formula is now
new
to Ron,
=DATE(YEAR(A2)-1,MONTH(A2),DAY(A2))-(MONTH(DATE(YEAR(A2)-1,MONTH(A2),DAY(A2)))<MONTH(A2))
That is, I enter a month and day in A2 and it will appear as last
year's
date, but now nothing changes, still in default year 2009.
Please advise.
--
Regards
FangYR
Malaysia






 
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
Date Fomula Question rainbowraven Excel Discussion (Misc queries) 4 April 23rd 07 09:22 PM
Fomula only half working AlanStotty Excel Discussion (Misc queries) 8 March 15th 07 02:26 PM
Fomula for number of days on each month from a date range [email protected] Excel Discussion (Misc queries) 3 November 9th 06 03:08 AM
fomula for working out profit nelly Excel Discussion (Misc queries) 2 November 4th 06 02:11 PM
the date format is not working ,sort by date doesn't work. Rosa Campos Excel Discussion (Misc queries) 1 September 12th 05 10:52 PM


All times are GMT +1. The time now is 05:16 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"