I need to calculate a date field that takes the current date, subtracts a month and then returns a date equal to "new month/20/year". For instance, the date I would return for today is 02/20/04. Any help is appreciated!!
Thanks, the second suggestion does exactly what I needed. Curious, can I use this same language to add a month (substituting "+" for "-")? I tested and cannot get it to work . . .
Let me give you some additional information . . .I am not using the Now() as I am actually trying to create the new date from a date already populated. So, I am trying to add one month, and change the day using:
As you had it written, it would add 1 day to the Contract Effective Day and take that month. Adding 1 day to 4/1/04 would give you 4/2/04, and taking that month would give you 4.
-this is really a tip, and if your above works, it is unnecesary.
Something else to try should your date fields go awry.
I never had the curiosity to look to see why this worked, but I noticed that sometimes, when pulling a date from a field functions that should work did not...until...I used the Trim() function before comparing it or performing calculations.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.