Formula date+90 conditional question

I have a list that takes an Open Date and adds 90 days to set a due date:
=[Open Date]+90
However, many of the Open Dates are years old. I've been asked to change it so that dates created before May 31, 2014, should default to August 31, 2014.
I'm thinking it's something like the following, but not sure of the syntax. I've tried these to no avail:
=[Open Date]+90, IF([Open Date]<5/31/2014,"8/31/2014")
=IF([Open Date]<5/31/2014,"8/31/2014",IF([Open
Date]>6/1/2014,([Open
Date]+90)))
=IF(([Open Date]+90)<5/31/2014,"8/31/2014",[Open
Date]+90)
Any recommendations greatly appreciated.
Thanks,
Scott

Hi,
Please try Mr. Keith's suggestion first. If you want to use the date format in the formula directly, we may try the following methods:
Set open date:  =DATEVALUE(TEXT(A1+90,"mm/dd/yy"))
Note: Please change the cell format as date format.
Example formula: =If(OpenDate-5/31/2014<0,8/31/2014,OpenDate+90)
Thanks
George Zhao
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click "[email protected]"

Similar Messages

  • List formula date conditional

    I have a list that takes an Open Date and adds 90 days to set a due date:
    =[Open Date]+90
    However, many of the Open Dates are years old. I've been asked to change it so that dates created before May 31, 2014, should default to August 31, 2014.
    I'm thinking it's something like the following, but not sure of the syntax:
    IF([Open Date]<5/31/2014,"8/31/2014",[Open Date]+90, )
    Look about right?
    Thanks,
    Scott

    Thanks Waqas, getting warmer. Now some of the pre 5/31/2014 dates are showing as 8/31/2014, and others are not. EG: Open Date 1/2/2009 is coming up as 8/31/2014, but 6/12/2009 is 9/10/2009.
    I see the AND operator, but thought maybe it wasn't carrying through.
    I looked through the list, and see that all of the opendates that changed to 8/31/2014 had a 1 as the first character in the date -- anything from
    January, October, November, December is now 8/31, but anything from the other months wasn't recognized.
    edit: another thing I've tried:
    =IF(AND(YEAR([Open Date])<2014,MONTH([Open Date])<5,DAY([Open Date])<31),"8/31/2014",[Open Date]+90)
    I realized that it should be [Open Date] + 90 for YEAR, MONTH, and DAY.
    I tried editing the values in the column. When I provide a month that's 1-4, I'm getting 8/31/2014. It ignores the DAY and YEAR values at that point.  
    Rechecked the AND:
    AND(YEAR([Open Date])<2014,
    MONTH([Open Date])<5,
    DAY([Open Date])<31
    and I'm not seeing any

  • Usage of formulas in conditions in BEx Query Designer

    Hi guys,
    does anybody of you guys know, if it's possible to use the results of formulas in conditions? I tried it, but the result of the query was "No applicable data found", but there are data for the selection.
    When I'm defining the condition with the key figure (no restricted or calculated key figure), then the query can be executed.
    In my case, I like to define a condition based on a formula result. The value should only be displayed, when the result is greater than 30.
    Any ideas or are there any bugy in the BEx Query Designer?
    Thanks a lot + best regards,
    Clemens

    Hi Clemens,
    I have created a condition in my own system based on formula and it works perfectly fine. Please check following points in your condition change mode,
    1) Condition is marked as Active.
    2) In the block "Evaluate condition below for" you will have to select "All characteristics in drilldown Independently". If you have selected combination of characteristics then you will have to maintain proper sequence otherwise your condition will not work.
    3) In the next block when you set the condition, click on new, in the first block select your Formula from dropdown and set the proper operator in your case you will have to select "Greater than" in the next column set the value of key figure and just trasnfer it.
    Now you are ready to use the condition.
    Regards,
    Durgesh.

  • Date condition not working correctly in Desktop

    Hello,
    I have two custom folders in Admin that are joined. One of the folders contains the following query:
    SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(CURRENT_READING) FIRST_READING
    FROM EAM_METER_READINGS_V
    WHERE PREV_DESC IS NULL
    Group By ORGANIZATION_ID, ASSET_NUMBER
    I want my workbook to report the earliest meter reading that exists, based on the date that is specified in the parameters in Desktop. When I create a parameter for the date, the workbook reports the earliest reading in the database; it ignores the date restriction entered in the parameter. This is the parameter:
    First Read Date MIN BETWEEN :First Reading Date and SYSDATE
    If I include the date condition in the SQL of the custom folder the workbook functions exactly as it should. The date condition is in the SQL as the following:
    and current_reading_date between '01-JAN-2007' and SYSDATE
    Since the workbook functions correctly when the condition is coded in the SQL but not when it is based on a parameter, I assume the problem is with the parameter. Any ideas on how I may correct this?
    Thanks,
    Steve

    Thanks for the response Michael. I tried using the MIN function as you suggested, but I still am not getting the expected result. I’m not sure that I was clear in my initial problem description. I will try to provide more detail with this post.
    The reason I have two custom folders is that my original query has a nested Select statement (EAMV) and I couldn’t find a way to pass the parameter from EAMV to Discoverer. Following is the original query. I suppose the first logical questions would be, is there a way to pass the parameter to Discoverer? Would this alleviate the need for the second custom folder?
    SELECT K.ORGANIZATION_CODE "ORG" -- ORGANIZATION
    , K.ORGANIZATION_ID
    ,A.NAME "PM SCHEDULE NAME" -- PREVENTIVE MAINTENANCE SCHEDULE NAME
    --( (B.RUNTIME_INTERVAL/F.USER_DEFINED_RATE) + D.LAST_SERVICE_END_DATE) "PROJECTED READ DATE" -- USES USER_DEFINED_RATE FROM METER DEFINITION
    ,(C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) "PROJECTED READ UNITS" -- NEXT SERVICE READING DUE UNITS
    ,F.METER_UOM "UOM" -- UNIT OF MEASURE ON METER
    ,F.METER_NAME "METER NAME" -- METER NAME
    ,G.SERIAL_NUMBER "MAINT EQ NO" -- MAINTAINED EQUIPMENT NUMBER
    ,H.C_ATTRIBUTE1 "MAKE" -- MAINTAINED EQUIPMENT NUMBER - MAKE/MANUFACTURER
    ,H.C_ATTRIBUTE2 "MODEL" -- MAINTAINED EQUIPMENT NUMBER - MODEL
    ,H.C_ATTRIBUTE4 "SERIAL NO" -- MAINTAINED EQUIPMENT NUMBER - SERIAL NUMBER
    ,I.SEGMENT1 "ACTIVITY" -- ASSET ACTIVITY
    ,D.LAST_SERVICE_END_DATE "LAST READ DATE" -- DATE OF LAST PM SERVICE READING
    ,C.LAST_SERVICE_READING "LAST READ UNITS" -- UNITS OF LAST PM SERVICE READING
    ,E1.CURRENT_READING_DATE "CURRENT READ DATE" -- DATE OF CURRENT SERVICE READING (FROM METER FORM)
    ,E1.CURRENT_READING                                   "CURRENT READ UNITS" -- UNITS OF CURRENT SERVICE READING (FROM METER FORM)
    ,E1.LIFE_TO_DATE_READING "LIFE TO DATE READING" LIFE TO DATE READING
    --,(E1.CURRENT_READING - C.LAST_SERVICE_READING) "CURRENT/LAST VARIANCE" -- UNITS SINCE LAST PM SERVICE READING
    ,( (C.LAST_SERVICE_READING + B.RUNTIME_INTERVAL) - E1.CURRENT_READING ) "PROJECTED/CURR VARIANCE" -- UNITS REMAINING UNTIL NEXT SCHEDULED READING
    ,J.DESCRIPTION "LOCATION" -- OWNING DEPARTMENT DESCRIPTION OF ASSET NUMBER
    ,J.DEPARTMENT_CODE
    ,E1.DISABLE_FLAG
    ,G.CURRENT_STATUS
    ,B.RUNTIME_INTERVAL
    ,Y.SET_NAME
    ,EAMV.FIRST_READ_DATE READ_DATE
    ,EAMV.FIRST_READING READING
    FROM EAM.EAM_PM_SCHEDULINGS A
    ,EAM.EAM_PM_SCHEDULING_RULES B
    ,EAM.EAM_PM_LAST_SERVICE C
    ,INV.MTL_EAM_ASSET_ACTIVITIES D
    ,EAM.EAM_ASSET_METERS E
    ,EAM.EAM_METER_READINGS E1
    ,EAM.EAM_METERS F
    ,INV.MTL_SERIAL_NUMBERS G
    ,INV.MTL_EAM_ASSET_ATTR_VALUES H
    ,INV.MTL_SYSTEM_ITEMS_B I
    ,BOM.BOM_DEPARTMENTS J
    ,INV.MTL_PARAMETERS K
    ,EAM.EAM_PM_SET_NAMES Y
         ,(SELECT ORGANIZATION_ID, ASSET_NUMBER, MIN(CURRENT_READING_DATE) FIRST_READ_DATE, MIN(LIFE_TO_DATE_READING) FIRST_READING
              FROM EAM_METER_READINGS_V
              WHERE CURRENT_READING_DATE BETWEEN '01-JAN-2007' AND '30-JUN-2007'
              GROUP BY ORGANIZATION_ID, ASSET_NUMBER) EAMV
    WHERE A.PM_SCHEDULE_ID = B.PM_SCHEDULE_ID
    AND A.ACTIVITY_ASSOCIATION_ID = C.ACTIVITY_ASSOCIATION_ID
    AND C.ACTIVITY_ASSOCIATION_ID = D.ACTIVITY_ASSOCIATION_ID
    AND D.SERIAL_NUMBER = E.ASSET_NUMBER
    AND D.ORGANIZATION_ID = E.ORGANIZATION_ID
    AND E.METER_ID = E1.METER_ID
    AND E1.METER_READING_ID =
    (SELECT MAX(METER_READING_ID)
    FROM EAM_METER_READINGS
    WHERE METER_ID = E1.METER_ID
    AND (DISABLE_FLAG = 'N' OR DISABLE_FLAG IS NULL))
    AND E.METER_ID = C.METER_ID
    AND E.METER_ID = B.METER_ID
    AND E.METER_ID = F.METER_ID
    AND D.MAINTENANCE_OBJECT_ID = G.GEN_OBJECT_ID
    AND D.ORGANIZATION_ID = G.CURRENT_ORGANIZATION_ID
    AND G.SERIAL_NUMBER = H.SERIAL_NUMBER
    AND G.CURRENT_ORGANIZATION_ID = H.ORGANIZATION_ID
    AND D.INVENTORY_ITEM_ID = H.INVENTORY_ITEM_ID
    AND H.ATTRIBUTE_CATEGORY = 'EQUIPMENT DETAILS'
    AND D.ASSET_ACTIVITY_ID = I.INVENTORY_ITEM_ID
    AND D.ORGANIZATION_ID = I.ORGANIZATION_ID
    AND G.OWNING_DEPARTMENT_ID = J.DEPARTMENT_ID (+)
    AND I.ORGANIZATION_ID = K.ORGANIZATION_ID
    AND A.SET_NAME_ID = Y.SET_NAME_ID
    AND Y.SET_NAME IN ('MAIN','COMP')
    AND G.CURRENT_ORGANIZATION_ID = EAMV.ORGANIZATION_ID
    AND G.SERIAL_NUMBER = EAMV.ASSET_NUMBER
    AND K.ORGANIZATION_CODE = 'MCC'
    Using this query I want to show the most recent reading (current reading) and then give users the flexibility to enter an earlier date so the earliest reading as of that date will also show. For example, if they enter 1-JAN-2007 as the parameter and there was a reading taken on 2-JAN-07 and 28-JAN-07, the report should show the 2-JAN-2007 reading (in addition to the most recent reading in a separate column). Currently, everything on the report displays correctly, except for the reading based on the parameter.

  • Date Condition

    Hi :
    I am working on Plant Maintenance module, i extracted work orders ( aufnr ) from AUFK based on some conditions, i am wondering to know how to code date condition for these.In the selection screen i have s_date option where the user can give any date range .my question is ...after selecting all the work orders i want only those work orders whose status is conformed and date condition is " For the calender week X, work order actual end date ( getri ) should not be later than the week ending of sunday night 11:59pm " .
    I am able to extract work orders whose status is conformed , but i need logic for tha date condition.
    points will be rewarded ..
    Thx.
    Raghu

    Hi
    For selecting records between date range,  s_date-low and s_date-high for a record which contains begin date field as begda and end date field as endda (This is for HR tables).
    We give date conditions as endda >= s_date-low AND begda <= s_date-high.
    When the user clicks on the checkbox, change the s_date-high to the appropriate date and you can filter records accordingly.
    Regards
    Navneet

  • How assign formula to condition type??

    I have a condition type with calculation type G (Formula).  I know that formula is calculated in VOFM, however, how to assign this formula to Condition Type??.
    Thanks in advance.

    hi,
    you have to create one additional cond type for the result. let say ZZZZ,
    then go to VOFM ->formula-> condition value-> create new routine
    this the code,
    DATA: xkomv_ZCSA TYPE komv_index, A TYPE WMTO_S-AMOUNT,
    xkomv_Z001 TYPE komv_index,
    xkomv_Z002 TYPE komv_index,
    xkomv_Z003 TYPE komv_index,
    xkomv_ZZZZ TYPE komv_index,
    xkomv_old TYPE komv_index.
    CLEAR: xkomv_Z001, xkomv_Z002, xkomv_Z003, xkomv_ZZZZ, xkomv_old.
    xkomv_old = xkomv.
    READ TABLE xkomv WITH KEY kschl = 'Z001.
    IF sy-subrc EQ 0.
    xkomv_Z001 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'Z002'.
    IF sy-subrc EQ 0.
    xkomv_Z002 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'Z003'.
    IF sy-subrc EQ 0.
    xkomv_Z003 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'ZZZZ'.
    IF sy-subrc EQ 0.
    xkomv_ZZZZ = xkomv.
    ENDIF.
    CLEAR : XKWERT.
    A = ( XKOMV_Z001-KWERT + XKOMV_Z002-KWERT +  XKOMV_Z003-KWERT ) / 3.
    A = A * 100.
    CALL FUNCTION 'CURRENCY_AMOUNT_DISPLAY_TO_SAP'
      EXPORTING
        CURRENCY = XKOMV-WAERS
        AMOUNT_DISPLAY = A
      IMPORTING
        AMOUNT_INTERNAL = A.
    MOVE A TO XKWERT.
    xkomv = xkomv_old.
    AFTER THAT activate this routine, the put this routine in pricing procedure for condition type ZZZZ.
    it'll works
    point if it's helpful
    Best Regard,
    Hendry

  • Date Condition based on time

    Hi :
    I am working on Plant Maintenance module, i extracted work orders ( aufnr ) from AUFK based on some conditions.
    In the selection screen i have s_date option where the user can give any date range .my question is ...after selecting all the work orders, i want to count work orders whose status is conformed and date condition is " For the calender week X, work order actual end date ( getri ) should not be later than the week ending of sunday night 11:59pm " .
    Here calender week X, starts on monday morning 00:01 am and ends sunday night 11:59pm
    I am able to extract work orders whose status is conformed , but i need logic for tha date condition based on the time ie, end date should not be later than the week ending of sunday night 11:59pm.
    points will be rewarded ..
    Thx.
    Raghu

    if you want the current date and time you can check with sy-datum or sy-uzeit.
    Or you can find if there is any date and time fields in the table and compare them against the date you want to.
    I am not sure if youa re looking for this.

  • How to cummulate the quantity based on the date condition?

    hi,
         In my query,i need to cummulate the open quantity based on the two date condition.
    If my Schedule line date > system date, i need to cummulate the open quantity.
          But in my query level i am getting 0 or 1 based on the above condition.
          i am struggling to cummulate the open qty based on the above condition.
        can any body throws an idea to resolve my issue.
    Regards,
    ravi.

    Thanks for suggestion,Almost i narrow down my issue to get the proper result.
    But  i have one doubt.
    Is it possible to user Formula variable  (Processing by replacement path-Reference char as Scheduline date) in my  Calculated Key Fig calculation.?? But here i am created  Scheduline date as Characher infoobject.
    Actually i am created Scheduline date as Character InfoObject,If i am using the following condition like
    (Schedule line date > system date) its throwing "X" value.
    For the above issue,if i am changing the Scheduline date as Key figure InfoObject means i will get the proper output for the condition(Schedule line date > system date) either 0 or 1.
    Is it correct????
    Regards,
    Ravi.

  • Date condition in BEx is getting converted as String prompt in Crystal

    Hi,
    The Date condition in BEx is getting converted as String prompt in Crystal Reports.
    User is not getting the flexibility to select date using Calendar option because of string type
    Please advice
    Thanks,
    Vishal

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

  • After date conditional formatting.

    I am using numbers.  I have a cell B1 with a date, Cell B4 is a formula (B1-80) to calculate 6/20/14.  I want to apply conditional formatting to say if 6/20/2014 is after todays date then make the cell red.  I am using version 3.2.  I can't figure it out even though it seems the obvious choice is Date>after>highlight B4 and done turns red since its 7/8.  However its not working.

    Hi Ken,
    B1 Contains the formula =TODAY
    Conditional highlighting of other cells in B if greater than $B$1 (using numbers, not dates)
    Regards,
    Ian.

  • Teradata database error when using a Universe-defined Date condition

    I have encountered an odd problem when connecting Crystal to a Universe.  There is a pre-defined Date condition built into the Universe that is defined as follows:
    @Select(Date\Week End Date)  >  @Select(Conditions\User Response Select Date week -28)  AND @Select(Date\Week End Date)  <=  @Select(Conditions\User Response Select Date)
    The filter is designed to retrieve a rolling 4 weeks of data.
    When I try and create and refresh a Crystal Report that includes this Date prompt, I get the following error:
    Failed to retrieve data from the database.
    Details: 22003:(ODBC Teradata Driver)(Teradata Database) A character string failed conversion to a numeric value.
    If I create the same query in a WebI report it works fine, but in Crystal the error is produced.  I have also tried constructing the same prompt and filter within Crystal rather than use the pre-built prompt but that did not work either.
    Does anyone have any experience or advice on this error?  I can't seem to find many related postings on this specific error.
    BO Enterprise XI 3.1 SP2 running on Windows 2008 Server R2
    Crystal Reports 2008 SP2 running on Windows XP SP3
    Universe is built on a Teradata 12 source
    Thanks!

    One item I found I had to do with Teradata was cast my date/time values to dates, otherwise I got weird errors like this. You say it's working in Web Intelligence, so this might not be the issue, but it is an easy thing to test.
    In the universe, change your end date definition to
    cast(table.end_date as date)
    and see if that helps.

  • How to hide fields in Web UI on basis of some data conditions

    Hi,
    Is there any way we can hide the fields on some data conditions, i know we can disable the field in get_i method but just wondering if we can hide it completely.
    Regards,
    Kamesh

    As far as I know there is no way to hide a field via the provided methods (Ex: GET_xxx...). The only way I reckon you can achieve this is to create a separate UI config for the fields you want to hide. I assume your scenario is simple else it would not make sense to create a ton of UI configs or would it?

  • Alternative formula for condition base value in cross-application

    Hi,
    I need inputs regarding an issue as:-
    In "TAXINJ" Tax pricing procedure, for a ZXXX  excise related condition type the alternate condition base value (Alternative formula for condition base value) must be of  YXXX condition type of MM Purchase pricing Procedure.
    How to acheive Alternative formula for condition base value in cross-application area as both condition type belongs to different Application area i.e.  ZXXX belongs to TX and YXXX belongs to M.
    One way or only way is thro' routine but I do not know How it works? 
    Thanking you.
    Prashant

    routine is only the best way for u in this case
    u will have to use subtot may be 6 or 4 in MM pricing procedure
    and write a routien in Tax procedure, i n that u will have to write a code where in ur sustem will featch this value in sub total and act a a base for ur cond type in Tax proc for ue condition type.
    what is your excat requirement
    there might be other work around that can help u around
    hope this works
    or write t routines one in MM and Other in Tax proc for ur issues

  • Used of 362 & 363 Alternative formula for condition base value in Define Procedures (Tcode obyz)

    Dear
             what is the  used of 362 & 363 Alternative formula for condition base value in Define Procedures (Tcode obyz)

    362 is used for to pick base value to BASB condition type from MM pricing procedure
    363 is used for all sales tax {VAT (Inventory or set -off) & CST}.
    Tax Calculation on Freight - Different Scenarios
    Please  go through this  link  and  you will know  very well a bout  362 and  363  usage

  • Select Query Based on date condition

    Hi ,
    Is it Possible.
    i want to run select query based on date condition.
    Eg...
    if the date between 01-jan-01 and 01-jan-05 then
    select * from table1;
    if the date between 02-jan-05 and 01-jan-08 then
    select * from table2;
    Becaz i have data in 2 diffrent tables , based on the date condition i wnt to run the select statement to diffrent tables.
    i dont want plsql here Just SQL needed.
    thanks,
    -R
    Edited by: infant_raj on May 5, 2009 11:48 PM

    Helo Kanish,
    this is not the one i was asking..
    wht i mean was .
    i use bind variable to get date while running the select statement , once i get the date then i want to choose any one of the table to run select query.
    EG..
    select col1,col2 from table1 where date between only if 01-jan-01 and 01-jan-05;
    select col1,col2 from table2 where date between only if 02-jan-05 and 01-jan-08;
    Run any one of the two . not all
    thanks,
    _raj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Modify MVGR4 in formula for condition value

    Hello everyone,
    I want to modify komp-mvgr4 in a formula for condition value. Changes in komp structure are not saved, any idea which field I have to modify?
    Many thanks!
    Andreas

    Sure. I have a new formula for a condition value which checks a lot of things to calculate the condition value. The result can also be zero. In all other cases than zero, I want to set an additional flag on the position to show that the condition is used. For this I choosed the material group 4. Now I have to modify the materialgroup 4 MVGR4 in the formula, if I change komp-mvgr4 is does not save the changes...
    Andreas

Maybe you are looking for

  • Aperture 3: low quality preview images

    I don't know if it's just a problem with my (new) Aperture Trial library or if it's a Aperture 3 bug: The preview images Aperture 3 (trial) creates from raw files (in my case NEFs) are different from the JPEGs exported using the same JPEG settings. I

  • Blue Ray DVD Burner - Which one should I buy?

    I have a video camera that records Blue Ray quality video and i would like to buy an external Blue Ray DVD burner to burn these movies. Can anyone recommend a good one to buy?

  • Accounting entity not reflecting in display area during ERPI setup

    Hi All, I am trying to setup ERPi to load data from Oracle. When i am intializing the source i am getting ( The process has been submitted to initialize the source system. Process ID: 8 Extract ID: 89501) but when i am trying to configure Accounting

  • How to query in two tables

    Hi all How to query in two different tables? Should i use the following SET_BLOCK_PROPERTY('ins1', ONETIME_WHERE, 'serial = ''' || :GLOBAL.CODE || ''''); this is working but for one table if i want for both tables and and it display the related infor

  • SR3 SMD Agent on SP15

    Hi Our Solution Manager is on SP14 and Managed System is on SP15. I want to install the SMD Agent. As per the note 1126895 it is possible and suported. LMSERVICE is SP14. I used note 1170855 to install it and it was successfull but the status is "in