Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default date formula

hi,

i've built a loan amortization schedule with payments due semi-annually. my
problem is that the payment must be on the same day of the 6th and 12th
month.
for example payments due 2/12/05 and 8/12/05 or 9/23/05 and 3/23/06. the
problem is that months have 30 or 31 days and then there's february and leap
years too. is there a way to program this function so that manual entry
payment dates can be eliminated?

tia
dennis


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default date formula

you could use data validation to supply a limited number of dates to
choose from.

  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default date formula

On Fri, 11 Feb 2005 20:07:01 -0500, "dennis" wrote:

hi,

i've built a loan amortization schedule with payments due semi-annually. my
problem is that the payment must be on the same day of the 6th and 12th
month.
for example payments due 2/12/05 and 8/12/05 or 9/23/05 and 3/23/06. the
problem is that months have 30 or 31 days and then there's february and leap
years too. is there a way to program this function so that manual entry
payment dates can be eliminated?

tia
dennis


What do you want to happen if the first payment date is 8/30/2005, or
3/31/2005?

If that is not an issue, the general formula, assuming your dates are in a
column with no blank rows, would be:

=DATE(YEAR(FirstPmtDate),MONTH(FirstPmtDate)
+6*ROW()-ROW(FirstPmtDate)*6,DAY(FirstPmtDate))

However, if for a First Payment Date of 8/30/2005 you want the next payment to
be due on the last day of February. and for 3/31/2005 you want the next payment
to be on the last day of September, then it becomes more complicated.

=IF(DAY(DATE(YEAR(FirstPmtDate),MONTH(FirstPmtDate )+6*ROW()
-ROW(FirstPmtDate)*6,DAY(FirstPmtDate)))=DAY(FirstP mtDate),DATE(
YEAR(FirstPmtDate),MONTH(FirstPmtDate)+6*ROW()-ROW(
FirstPmtDate)*6,DAY(FirstPmtDate)),DATE(YEAR(First PmtDate),
MONTH(FirstPmtDate)+6*ROW()-ROW(FirstPmtDate)*6,DAY(
FirstPmtDate))-DAY(DATE(YEAR(FirstPmtDate),MONTH(FirstPmtDate)
+6*ROW()-ROW(FirstPmtDate)*6,DAY(FirstPmtDate))))


--ron
  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default date formula

On Fri, 11 Feb 2005 20:07:01 -0500, "dennis" wrote:

hi,

i've built a loan amortization schedule with payments due semi-annually. my
problem is that the payment must be on the same day of the 6th and 12th
month.
for example payments due 2/12/05 and 8/12/05 or 9/23/05 and 3/23/06. the
problem is that months have 30 or 31 days and then there's february and leap
years too. is there a way to program this function so that manual entry
payment dates can be eliminated?

tia
dennis


If you have installed (or can install) the Analysis Tool Pack, you can use a
simpler formula than the one I previously posted:

Again, with the payment dates in a column under FirstPmtDate and no blank rows:

=EDATE(FirstPmtDate,(ROW()-ROW(FirstPmtDate))*6)

If the EDATE function is not available, and returns the #NAME? error, install
and load the Analysis ToolPak add-in.

How?

On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.


--ron
  #5   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 623
Default date formula

To get the next date 6 months out, use:

=date(year(a1),month(a1)+6,day(a1))

Excel is smart enough to roll over to the next year if you're starting in
months from Jul to Dec.

--
Regards,
Fred
Please reply to newsgroup, not e-mail


"dennis" wrote in message
news:NHcPd.40226$EG1.14351@lakeread04...
hi,

i've built a loan amortization schedule with payments due semi-annually.
my
problem is that the payment must be on the same day of the 6th and 12th
month.
for example payments due 2/12/05 and 8/12/05 or 9/23/05 and 3/23/06. the
problem is that months have 30 or 31 days and then there's february and
leap
years too. is there a way to program this function so that manual entry
payment dates can be eliminated?

tia
dennis






  #6   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default date formula

On Fri, 11 Feb 2005 22:08:55 -0600, "Fred Smith" wrote:

To get the next date 6 months out, use:

=date(year(a1),month(a1)+6,day(a1))

Excel is smart enough to roll over to the next year if you're starting in
months from Jul to Dec.


Try 8/30/2005 in A1.


--ron
  #7   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default date formula

ron, wouldn't there be a problem only if one were to begin their series with
the following 4:
8/29,
8/30,
8/31
or 2/29 ?

All others (limited test) seem to work..
TIA,


"Ron Rosenfeld" wrote in message
...
On Fri, 11 Feb 2005 22:08:55 -0600, "Fred Smith"

wrote:

To get the next date 6 months out, use:

=date(year(a1),month(a1)+6,day(a1))

Excel is smart enough to roll over to the next year if you're starting in
months from Jul to Dec.


Try 8/30/2005 in A1.


--ron



  #8   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default date formula

On Sat, 12 Feb 2005 09:17:24 -0500, "Jim May" wrote:

ron, wouldn't there be a problem only if one were to begin their series with
the following 4:
8/29,
8/30,
8/31
or 2/29 ?


The problem will occur with the following dates:

29-Feb
31-Mar
31-May
29-Aug *unless subsequent year is a leap year
30-Aug
31-Aug
31-Oct
31-Dec


--ron
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
formula to look at current date and markdown date to give price veena Excel Discussion (Misc queries) 4 November 13th 08 07:40 PM
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


All times are GMT +1. The time now is 02:45 PM.

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"