Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Date Calculation from a Due Date

Many thanks Sebastienm for your suggestion. I'm afraid though, that I do not
have 2 dates. I have only 1 column with a date within which a project
requires to be completed. That is, once Contracts are signed, there could
have a period of 24 months, 18 months or even 6 months for completion.
Therefore, each month I need to submit a report showing the number of months
remaining for each contract.


"sebastienm" wrote:

Hi,

To get the number of days, just substract the two dates and format the cell
as number:
Say the dates are in A3 and A2
In A4: = A3 - A1
Now, format A4 as regular number -- this is the number of days.

So determining the number of days is easy. However to determine the number
of Month/Day, not sure how to get there easily.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Hi all,
I have a project table with due date in cell A4. In cell A5, I require to
have it calculate, the number of days/months remaining till the Due Date.

I haven't been able to find the answer by Googling. There are solutions for
calculations between 2 dates and so on.

Your advise would be very much appreciated, as I require to prepared this by
the end of this week.

Many thanks in advance.

Prabha

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Date Calculation from a Due Date

In that case, compare with Today ie function TODAY( ):
= A2-Today()
For the number of months:
=(YEAR(Today())-YEAR(A2)) * 12 + MONTH(Today())-MONTH(A2)

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Many thanks Sebastienm for your suggestion. I'm afraid though, that I do not
have 2 dates. I have only 1 column with a date within which a project
requires to be completed. That is, once Contracts are signed, there could
have a period of 24 months, 18 months or even 6 months for completion.
Therefore, each month I need to submit a report showing the number of months
remaining for each contract.


"sebastienm" wrote:

Hi,

To get the number of days, just substract the two dates and format the cell
as number:
Say the dates are in A3 and A2
In A4: = A3 - A1
Now, format A4 as regular number -- this is the number of days.

So determining the number of days is easy. However to determine the number
of Month/Day, not sure how to get there easily.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Hi all,
I have a project table with due date in cell A4. In cell A5, I require to
have it calculate, the number of days/months remaining till the Due Date.

I haven't been able to find the answer by Googling. There are solutions for
calculations between 2 dates and so on.

Your advise would be very much appreciated, as I require to prepared this by
the end of this week.

Many thanks in advance.

Prabha

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Date Calculation from a Due Date

ooops i reversed the last function i believe:
For the number of months:
=(YEAR(a2)-YEAR(Today())) * 12 + MONTH(a2)-MONTH(Today())
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"sebastienm" wrote:

In that case, compare with Today ie function TODAY( ):
= A2-Today()
For the number of months:
=(YEAR(Today())-YEAR(A2)) * 12 + MONTH(Today())-MONTH(A2)

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Many thanks Sebastienm for your suggestion. I'm afraid though, that I do not
have 2 dates. I have only 1 column with a date within which a project
requires to be completed. That is, once Contracts are signed, there could
have a period of 24 months, 18 months or even 6 months for completion.
Therefore, each month I need to submit a report showing the number of months
remaining for each contract.


"sebastienm" wrote:

Hi,

To get the number of days, just substract the two dates and format the cell
as number:
Say the dates are in A3 and A2
In A4: = A3 - A1
Now, format A4 as regular number -- this is the number of days.

So determining the number of days is easy. However to determine the number
of Month/Day, not sure how to get there easily.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Hi all,
I have a project table with due date in cell A4. In cell A5, I require to
have it calculate, the number of days/months remaining till the Due Date.

I haven't been able to find the answer by Googling. There are solutions for
calculations between 2 dates and so on.

Your advise would be very much appreciated, as I require to prepared this by
the end of this week.

Many thanks in advance.

Prabha

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Date Calculation from a Due Date

Many thanks for your help. That worked perfect (well, of course it would...)
Until next time :-) , when I return back for some more help
Best wishes for Christmas and A Prosperous New Year

"sebastienm" wrote:

ooops i reversed the last function i believe:
For the number of months:
=(YEAR(a2)-YEAR(Today())) * 12 + MONTH(a2)-MONTH(Today())
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"sebastienm" wrote:

In that case, compare with Today ie function TODAY( ):
= A2-Today()
For the number of months:
=(YEAR(Today())-YEAR(A2)) * 12 + MONTH(Today())-MONTH(A2)

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Many thanks Sebastienm for your suggestion. I'm afraid though, that I do not
have 2 dates. I have only 1 column with a date within which a project
requires to be completed. That is, once Contracts are signed, there could
have a period of 24 months, 18 months or even 6 months for completion.
Therefore, each month I need to submit a report showing the number of months
remaining for each contract.


"sebastienm" wrote:

Hi,

To get the number of days, just substract the two dates and format the cell
as number:
Say the dates are in A3 and A2
In A4: = A3 - A1
Now, format A4 as regular number -- this is the number of days.

So determining the number of days is easy. However to determine the number
of Month/Day, not sure how to get there easily.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"Prabha" wrote:

Hi all,
I have a project table with due date in cell A4. In cell A5, I require to
have it calculate, the number of days/months remaining till the Due Date.

I haven't been able to find the answer by Googling. There are solutions for
calculations between 2 dates and so on.

Your advise would be very much appreciated, as I require to prepared this by
the end of this week.

Many thanks in advance.

Prabha

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
A specific date used for calculation of a new date Ditte Excel Discussion (Misc queries) 7 July 17th 09 08:00 AM
Date Calculation (from entered date / 1yr later in next field) ajaminb Excel Worksheet Functions 6 September 29th 08 02:11 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM
Coding to show first _weekday_ prior to a date, when date calculation happens to fall on weekend? StargateFan[_3_] Excel Programming 5 December 9th 04 09:06 AM


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