A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

calculating dates



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2009, 09:11 PM posted to microsoft.public.excel.misc
future spreadsheet master
external usenet poster
 
Posts: 1
Default calculating dates

I'm wondering if I am able to calculate a date based on two different cells.
A1 is my actual start date 6/28/2006
C1 is the current date (ex 5/13/2009)
B1- I want this is be the start date for the person's year at work. so I
want it to calculate 6/28/2008. The catch is I can't just go -1 on the year
because when the current date is 7/1/2009 (C1) I need B1 to be 6/28/2009 to
relect only being 3 days into that work year.
Is this possible? If so, how?
  #2  
Old May 13th, 2009, 10:34 PM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default calculating dates

Try this in B1
=C1-MOD(C1-A1,365.25)+1

"future spreadsheet master" wrote:

I'm wondering if I am able to calculate a date based on two different cells.
A1 is my actual start date 6/28/2006
C1 is the current date (ex 5/13/2009)
B1- I want this is be the start date for the person's year at work. so I
want it to calculate 6/28/2008. The catch is I can't just go -1 on the year
because when the current date is 7/1/2009 (C1) I need B1 to be 6/28/2009 to
relect only being 3 days into that work year.
Is this possible? If so, how?

  #4  
Old May 13th, 2009, 11:27 PM posted to microsoft.public.excel.misc
smartin
external usenet poster
 
Posts: 780
Default calculating dates

Sheeloo wrote:
Try this in B1
=C1-MOD(C1-A1,365.25)+1


That will be off by one day in many circumstances. Try it with A1 =
2004/03/01 and today's date in C1.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:28 AM.


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