![]() |
#1
|
|||
|
|||
![]()
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... |
#2
|
||||
|
||||
![]()
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 |
#3
|
|||
|
|||
![]()
The formula sure looked right to me, but Excel tells me it has "too many arguments".
|
#4
|
||||
|
||||
![]()
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 |
#5
|
|||
|
|||
![]()
Thanks! I missed that as well, obviously...
|
#6
|
||||
|
||||
![]()
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 |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
JimPerry | Word | 2 | 10-07-2022 01:30 PM |
![]() |
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 |
![]() |
jamierbooth | Excel | 2 | 02-22-2011 03:35 AM |