Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2024, 02:28 PM
wsnow wsnow is offline Calculating a due date based on two different starting points. Windows 10 Calculating a due date based on two different starting points. Office 2019
Novice
Calculating a due date based on two different starting points.
 
Join Date: Sep 2023
Posts: 24
wsnow is on a distinguished road
Default Calculating a due date based on two different starting points.

I have this formula:



=IF(ISBLANK([@[Declaration Date]]),"",[@[Declaration Date]]+IF([@[Declaration Date]]<DATE(2024,8,15),365,457))

It reads a declaration date, and then returns an application due date either 365 or 457 days out from declaration date, depending on whether the declaration date was before or after 8/15/2024.

I would prefer to have it add 12 or 15 months to the Declaration Date rather than 365 or 549 days but don't know how to do that. And I don't really know how Excel knows that the 365 and 549 in the formula indicates days instead of months, or years.

Thanks in advance...
Reply With Quote
  #2  
Old 08-18-2024, 06:35 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculating a due date based on two different starting points. Windows 10 Calculating a due date based on two different starting points. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps
Code:
=IF(ISBLANK([@[Declaration Date]]),"",IF([@[Declaration Date]]<DATE(2024,8,15),EDATE([@[Declaration Date]],12),EDATE(,[@[Declaration Date]],15))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 08-19-2024, 07:42 AM
wsnow wsnow is offline Calculating a due date based on two different starting points. Windows 10 Calculating a due date based on two different starting points. Office 2019
Novice
Calculating a due date based on two different starting points.
 
Join Date: Sep 2023
Posts: 24
wsnow is on a distinguished road
Default Too many arguments?

The formula sure looked right to me, but Excel tells me it has "too many arguments".
Reply With Quote
  #4  
Old 08-19-2024, 11:42 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculating a due date based on two different starting points. Windows 10 Calculating a due date based on two different starting points. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

From my suggestion,remove the comma after the second "EDATE(" (sorry for the typo)



Code:
=IF(ISBLANK([@[Declaration Date]]),"",IF([@[Declaration Date]]<DATE(2024,8,15),EDATE([@[Declaration Date]],12),EDATE([@[Declaration Date]],15))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 08-20-2024, 07:34 AM
wsnow wsnow is offline Calculating a due date based on two different starting points. Windows 11 Calculating a due date based on two different starting points. Office 2021
Novice
Calculating a due date based on two different starting points.
 
Join Date: Sep 2023
Posts: 24
wsnow is on a distinguished road
Default

Thanks! I missed that as well, obviously...
Reply With Quote
  #6  
Old 08-20-2024, 10:58 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Calculating a due date based on two different starting points. Windows 10 Calculating a due date based on two different starting points. Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Deleted by author
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post

Last edited by Pecoflyer; 08-20-2024 at 10:59 PM. Reason: error
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating a due date based on two different starting points. How to auto-populate a date in sequence from page to page, starting with a custom date JimPerry Word 2 10-07-2022 01:30 PM
Calculating a due date based on two different starting points. Calculating age of something from a Date Picker BoringDavid Word VBA 12 01-13-2014 02:40 AM
Calculating a cell value based on many variables malawimick Excel 0 12-14-2011 05:29 PM
calculating points and division in excel edward masoya Excel 1 05-09-2011 06:31 AM
Calculating a due date based on two different starting points. Calculating age at date jamierbooth Excel 2 02-22-2011 03:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:13 PM.


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