Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-23-2018, 11:46 AM
DanOnline DanOnline is offline Adding 9 months to month end date. Windows 10 Adding 9 months to month end date. Office 2016
Novice
Adding 9 months to month end date.
 
Join Date: Oct 2018
Posts: 7
DanOnline is on a distinguished road
Default Adding 9 months to month end date.

Hello all,

My problem is relatively simple on paper. I have a word template that is populated by mail merge collected from a database, one of these fields generates a date. I need to add 9 months to this date. The date will always be the last date of that month.

I have looked around on the internet and what not and seen Macropods workings of how to add a number of days to a field, but the number of days in a 9 month period will vary. Is there an alternate way in which I could generate this field.

My experience with mail merge is quite limited as I don't use it with any great frequency. But when I looked at prior threads relating to adding day amounts it seemed rather complex. Instead, my mind gravitated towards a solution that took advantage of the fact that I would only have 12 possibilities per a year, 31 Jan, 28 Feb so on and so forth. (discounting leap year) would it be possible to use an IF function that takes advantage of the fact that there are only 12 possible inputs, and 12 outputs per a year to simply match them together? I.e. 31 January becomes 31 October.

{ IF {DATABASEDATE} = "31 January" "31 October" "" }

where DATABASEDATE is a substitute for the field that populates from the database with the date.

However, the mailmerge uses a single field which I guess would create issues due to the year being contained within, the use of an if formula would require a replication would it not. As the field 31 Jan 2017 would be read differently to 31 Jan 2018 and so on. Would be at most 24 combinations as the dates are from now onwards, and the template could be updated every few months as needed. Presumably, the more formulas included greater the period between each change.



Is there an alternative way of doing this? Would the IF formula approach work?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 9 months to month end date. Find Date Month charlesdh Excel Programming 11 07-24-2018 06:11 PM
Adding 9 months to month end date. Adding Months TimmiAndrew Excel 2 09-16-2015 10:21 AM
Adding 9 months to month end date. Is it possible to format today's date minus 12 months sarabeck Word 1 07-09-2015 04:53 PM
Adding 9 months to month end date. Counting Number of Months from a static date bremen22 Excel 4 11-25-2013 11:57 AM
Adding 9 months to month end date. Adding months to a Date tsindos Word 4 10-04-2011 11:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft