# Automating Out Current Loan Period From Start Date And Today Date In IMPT Function?

Jun 12, 2014

Trying to automate the period part of the impt function

To calculate current value of loan i have the below formula below with the 3 being the current period

=IPMT(4.3%/12,3,5*12,-7000)/(4.3%/12)

What i would like to do is for the period to be self calcuating from current date and the loan start date. I can return a value in days using start date - today() and aware month function returns the month number but stuggling to find a way to work out cumulative month from the start date.

## Calculate Next Due Date Based On Start Date Frequency And Current Date?

Mar 9, 2014

I'm trying to workout how to take a known initial date a repeating frequency and work out the next due date from today.

Example

Initial Date :- 1st of January 2014

Frequency :- every 5 weeks

Current Date :- 9th of March 2014

Next Due date should be :-12th of March 2014 (if I worked it out correctly from my paper calendar)

I want to use a cell formula to do this for different initial dates and varying frequency periods (the frequency will always be whole weeks i.e. 1,2,3,4,5,6,7,8,8,10)

## Automating Monthly Budget Averages Based On Start And End Date

Jan 30, 2014

I am trying to create a document that takes our client PO amounts, tactics/spend line items, and dates from one sheet and averages them across the months that it is eligible, so we can know the total amount of money we can expect to go out from our clients each month.

For example:
Client1 Tactic1 StartDate EndDate TotalAmount
Client1 Tactic2 StartDate EndDate TotalAmount
Client1 Tactic3 StartDate EndDate TotalAmount
Client2 Tactic1 StartDate EndDate TotalAmount
Client2 Tactic2 StartDate EndDate TotalAmount

I have mostly figured this out in a really complicated way with many nested if statements, but there HAS to be a simpler way. There will be lots of hands in this document, so I would like to make it as simple and easy as possible.

## Calculate Future Dates From Start Date With Varying Time Period/cycle

Sep 11, 2009

I need to determine a formula which will allow me to calculate a future date based upon a current date with varying time periods.

For example:

I have a bill which is paid on the 15th and last business day of each month. I would like to be able to see the next due date regardless of what day of the week it is.

I have a bill which is paid every other Tuesday. I would like to know the next due date without having to enter +14 for every due date in the future. In other words, it is preferable to be able to open the spreadsheet and automatically see the next due date, not use autofill to repeatedly add +14 to a previous date which would limit the # of future due dates that could be calculated.

I have a bill which is paid on the last business day of each month, not the last Friday of each month. I would need excel to return a value for the last day of the month which = Monday-Friday, regardless of what day of the week it may be as long as it isn't Saturday or Sunday(holiday exclusion would be nice but not required).

## Sort Table In Date Order But With The Date Nearest To Today's Date At The Top

Nov 19, 2009

I have data going in to a small table which has some empty rows as that data is not yet available... My problem is, I need to sort this table in date order but with the date nearest to today's date at the top...

The sort function puts oldest at the top or oldest at the bottom which is no good for what I need...

I use xl 2003.

## Compute The FuTure Date When Start Date,Lead Date,Weekly Offs,Leaves And Holidays

Nov 15, 2008

First and foremost I would like to congragulate you on this wondeful piece of code in the below link...

The query was to get a future date excluding Fridays and Holidays...

http://www.excelforum.com/excel-work...rkingdays.html

I have a similar query and therefore I pasted this link...

I actually wanted to get a future date using a Dynamic two day off as my the offs keep on changing as well as incorporate Holidays and Leaves if any..

Now Holidays would be official Public Holidays and
Leaves would be taken by the employee..

The code needs to pick the Leaves + Holidays and different offs maybe even more than 2 offs...

## Use Function Or Button To Put Today Date In Documents?

Nov 17, 2013

I would like to use a function or a button to put today's date in documents. The only function I found is "today" but it changes every day. I would like to put, lets say 17-11-13 and still have the same date tomorrow and not 18-11-13.

## How To Auto-Populate Date Range (working Days Only) From Start Date And End Date

May 25, 2014

I am now trying to create a excel macro to auto populate all the dates with reference to a start date and end date. The catch is that only working days are required in the range. My reference cells (start and end date) are in Sheet 1 while the destination cell range are in Sheet 2. The reason for creating a macro instead of a function is that the intervals between the start date and end date changes frequently (annual, semi-annual and quarterly) Best case scenario would be a button which I can just press after i input the dates to generate the range of dates in another sheet.

## TODAY() Function And Viewing Or Printing Original Date

Mar 29, 2009

I have a seemingly simple dilemna and wonder if there is a solution... I am not a PRO user, but can get by with my limited knowledge of excel.

My issue:

I create invoices for my business and in the invoice I use the "TODAY()" function to automatically insert the current day when I created the invoice.

Now when I need to go back and look at the old invoice or print it again it shows the CURRENT date, not the original date when it was saved. Is there a way to view and/or print out a file while keeping the original date intact or is there a better way to format a date to avoid this happening in the future.

I have since eliminated the function and just type in the date to avoid this but I have about 100 invoices that are saved that I may need to view their "original" dates on.

## WORKDAY Function To Calculate The Start Date

Jun 11, 2009

As everyone realizes that WORKDAY function can return a working date that exclude weekends and any dates identified as holidays. However, what if I want to return a working date excluding my designated holidays but including weekends?

For example,

Holidays are 1 Jun 2009, 2 Jun 2009 and 4 Jun 2009

Start Date: ???
Finish Date: 8 Jun 2009
Duration: 5 days

The Start Date should be 30 May 2009.

Seems like I am not able to use WORKDAY function to calculate the start date.

## NETWORKDAYS() Function Will Return A Value Of 1 If Start And End Date Are Same

Nov 12, 2008

Anyone know why the NETWORKDAYS() function will return a value of 1 if the start and end date are the same? Does the function always assume that the start_date is at 12:00AM and the end_date is at 11:59PM, because it seems to also show that there are 3 days between 11/04/08 and 11/06/08.

## Excel 2010 :: Find Months And Days Between Today And Another Date That Is Result Of Function?

Apr 25, 2014

I'm in Excel 2010, and the cell with the date I want to work from is H22.

I'm trying to get the difference of the (date+12 months)-TODAY() to appear in months and days.

Here's the latest thing I tried (that doesn't work):

=IF(DATEDIF(H22,TODAY(),"y")>=1,DATEDIF(H22,TODAY(),"y")&" yrs, "&DATEDIF(H22,TODAY(),"ym")&" mths,
"&DATEDIF(H22,TODAY(),"md")&" days",IF(DATEDIF(H22,TODAY(),"ym")>=1,DATEDIF(H22,TODAY(),"ym")&" mths, "&DATEDIF(H22,TODAY(),"md")&" days",DATEDIF(H22,TODAY(),"md")&" days"))

I should also probably note that the date in H22 is the result of another function.

=EDATE(G22,12)

## VBA / Function To List All Dates Between Start And End Date Excluding Sundays

Feb 8, 2013

I need the VBA/UDF to produce a column of dates between a start date and end date, excluding Sundays.

I can see lots, excluding weekends, but very little for just Sundays.

## Prefill Text Box In Userform With Today Date But Allow User To Enter Unique Date

May 29, 2014

I have a workbook that I'm using to tracking staffing patterns within a mental health agency. When the workbook opens the user is asked to pick a date range and an office location. I've placed code into the userform that pre-fills the "start date" with today's date and the "end date" 7 days from today's date. I would like the user to be able to enter a unique date range should they wish but I have yet to figure out the coding to accomplish my goal.

[Code] .....

Attached File : Staffing Report 1.90.xlsm‎

## Date Countdown: Results Of The Number Of Days Between Today And A Future Date

Apr 8, 2009

I am trying to get the results of the number of days between today and a future date. I am using ="cell containing futuredate"-today() and it gets me the correct number of days. The problem comes in when I have yet to populate the future dates. I am getting -39991 (numeric value between today and jan 01 01) and because I am also using conditional formatting this is even more of a problem. Is there a way get excel to display nothing if it is a negative number? or to give a specified resut if the number becomes negative such as Expired or something of that nature?

## Calculate The Number Of Days From A Date Entered Into Cell A1 To Today's Date

May 19, 2009

I need a formula that will calculate the number of days from a date entered into cell A1 to today's date. Whether it's before or after todays date. Example:

5/10/2009 to today is -9

5/22/2009 to today is 3

## Creating View By Filtering 2 Columns By Date (both Within 3 Months Of Today Date)

Mar 20, 2014

Trying to do a linkback from another post located here but not having much luck doing it: [URL]

I'm working with 2 date columns and trying to filter a view to only include projects with dates within 3 months of today's date.

I've attached a current working file of the data and the end result i'm hoping to achieve via a macro of some sort.

I've manually got it to work via formula by inserting 2 additional columns (highlighted yellow) which determine if the dates "YES" fall in this 3 month time frame of "" blank if not.

create a macro which does all of this automatically without modifying any columns if this is possible

## Macro To Alert If Today's Date Is Within 5 Days Of Expected Delivery Date

Sep 18, 2008

I have a worksheet that has a sent date and expected delivery date I need create a macro that will alert me if today's date is within 5 days of expected delivery date.

## Show Week Number Of Today Date From Starting Date

Jun 27, 2014

is it possible to display the week number of todays date (today()) from a physically entered start date (which would obviously be week one), the start date would be november 4th 2013.

## Blank Cells If Date Equal On Larger Than Today Date

Dec 31, 2013

On A3: D10 I have information on C1 a have date and E3:E10 I will input date

i.e. If the date entered in E3 is the same as or larger than the date on C1 then Blank the entire line A3: D3

## Stamp Cell With Today Date Without The Date Changing Tomorrow?

Feb 7, 2013

If a1,a21,a41 have a value greater than 0, I wish to stamp cell b1,b21,b41 and so on with todays date, but without the stamped value changing/advancing tomorrow. At the moment cells b1,b21,b41 are copied down as follows. =if(a1>0,TODAY(),"") This works fine, but the date stamp of course changes tomorrow. I can not apply code to the whole b column as cells b2:b20, b22:40 etc have other non-date format data to which the code does not need to apply - the todays date value cell occurs every 20 cells.

## Excel 2003 :: Date Formula For If Given Date Is Before Or After Today Or If Nothing Entered

Jan 17, 2013

Cell B1 contains a date, then B2 contains a formula that says:

=IF(A1>TODAY(),A1,A2)

A1 contains a green tick and A2 contains a red cross.

What I am trying to add is that if B1 contains no date then B2 needs to be blank.

I tried using =IF((A1="",0),(A1>TODAY(),A1,A2) to get it to show a 0 if there was no data but this doesn't work.

I am using Excel 2003.

## Formula To Give Next Monday Date From Today Date

Apr 16, 2014

I have a formula

=AL260-WEEKDAY(AL260,2)+MATCH(AP260,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)

The formula looks at the chosen start date (AL260), and then uses a displayed text day (AP20) to display the relvent date to the text day, this works fine however if the start date is say 08/08/14 (a Friday) when the formula detects a Monday (this copies down a range looking at the start date and the text days to produce dates on each line, the formula displays the Monday dates prior to start date, is there any way to alter this to make it display the dates ahead of the chosen start date?

## Filter Data By Date Within 3 Months Of Today Date?

Mar 20, 2014

I'm trying to filter 2 date columns to include only data containing dates within 3 months of today's date.

I see there is a data filter option for "next quarter" but not 100% sure if this covers the quarter from today's date?

## Automatic The Date To Today's Date When You Open The File

Feb 25, 2009

how can you automatic the date to today's date when you open the excel file?

ie.

Price Report For 02/25/09

## How To Keep Date Entry TODAY Frozen On That Specific Date

Mar 6, 2014

I am working on a spreadsheet to create a school 'tracking' system based on excel. What I need is that as soon as a box in column B is ticked, a date (TODAY() is entered in column A. That is not so difficult, and I have used the formula in cells in column A:

=IF(ISBLANK(Bx);"";TODAY()), where x is the specific row.

So, keep cell A clear untill something is written in cell B. This works fine.

But, for the purpose I need to keep the TODAY() date fixed after entry. And it need to be erased again if the tickbox in cell B is emptied again. It need then to re-enter a new date after cell B is re-used.

## Userform Validation If Date Is Within 2 Weeks Of Today Date

Mar 19, 2014

I am setting up some validation on my userform. In this case if a user enters a date within two weeks of todays date they will not be able to proceed onto the next page.

Example: Todays date is 19/03/14. If a user enters 25/03/14 into 'TxtDate' they will not be able to proceed.

[Code] ......

## Macro To Test If A Date Is Earlier Than Today's Date

Dec 19, 2008

I'm trying to use the Function Today() in my macro to test if a date is earlier than today's date, and I get a compile error.

## Date Picker In Form - Default To Today Date

May 16, 2014

I'm trying to get a date picker to open with the current day's date, and am running into some trouble...

I added this line to the Initialize function:

Code:
Private Sub UserForm_Initialize()
DTPicker.Value = Date
End Sub

...and this to a button which opens the form:

Code:
Sub Open_frmPatientData()
frmPatientData.Show
frmPatientData.txtLastName.Value = ""
frmPatientData.txtFirstName.Value = ""
frmPatientData.txtID.Value = ""
frmPatientData.txtDay.Value = DTPicker1.Day
frmPatientData.txtMonth.Value = DTPicker1.Month
frmPatientData.txtYear.Value = DTPicker1.Year
End Sub

and I get a 'Run Time Error 424: Object Required' error on the line frmPatientData.show (in red). If I remove the line from the Initialize event, then everything works fine, but of course the current date isn't shown. What am I doing wrong?

## Referencing Then Subtracting A Date From Another Workbook From Today Date

Jun 6, 2014

I am trying to take the year from today's date then subtract away a date from a referenced date in a separate workbook. Then I want to put this result into an IF statement. For example if the result is between the number 1 and 4, display 1, if the result is between 5 and 9, display 2, etc. Right now, I'm simply trying to reference the separate workbook for the date and subtract that from today's date, but I'm stuck because I only get the date's serial number back.