+ Reply to Thread
Results 1 to 7 of 7

Frequency Due Date Formula

  1. #1
    Registered User
    Join Date
    02-23-2011
    Location
    Fussa, Japan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Frequency Due Date Formula

    I'm trying to create a conditional formula in excel that will let show the following information:
    If the inspection frequency is quarterly (input in cell B2 is QUARTERLY), and the date completed (C2) is 2/24/2011 then the due date (to be imputed into cell D2) is... this is where I want the result of my formula.

    I need to make separate formulas for each of the following frequencies:

    Daily
    Monthly
    Quarterly
    Semi-Annually
    Annually
    Bi-Annually
    Tri-Annually
    5 Years

    Not sure if I explained it right. I can see the formula concept in my brain but can't get it to coincide with what excel wants. Thanks for the help!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Frequency Due Date Formula

    Hi

    Possibly use CHOOSE based on the position of the selected frequency in the list of frequencies???

    rylo

  3. #3
    Registered User
    Join Date
    02-23-2011
    Location
    Fussa, Japan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Frequency Due Date Formula

    Rylo,

    Thank you for the information. I'm still learning a lot about excel, how exactly would I use the CHOOSE function?

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Frequency Due Date Formula

    Hi

    Put up an example workbook showing your structure, some dummy data, and exactly what formula should be used in each of the given situations.

    rylo

  5. #5
    Registered User
    Join Date
    02-23-2011
    Location
    Fussa, Japan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Frequency Due Date Formula

    What I really want to do with this is have the date you enter in column C automatically calculate a due date in column E based on the frequency entered in column B. I want the STATUS in column D to change between CURRENT and DUE based on the due date as well. I already have the conditional formatting in place to color code the column results appropriately, I just need the formula and where/how to apply it to get the result I want.

    Thanks for all of your help so far!

    /Holli
    Attached Files Attached Files

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Frequency Due Date Formula

    I made a table in M1:N8, showing the periods and their length in months. You can put the table somewhere else if you want.

    The text in the Table should match the text selected so I also made a dropdown list for column B so you can only select those options

    Now in E2 copied down I used this formula

    =IF(B2="Daily",TODAY(),IF(B2="As Needed","",EDATE(C2,CEILING(DATEDIF(C2,TODAY(),"m"),VLOOKUP(B2,M$2:N$8,2,0)))))

    The date returned should always be today or later, is that what you need?

    I don't know how you determine whether the status is current or due or something else, what's the rule?

    See attached
    Attached Files Attached Files
    Audere est facere

  7. #7
    Registered User
    Join Date
    02-23-2011
    Location
    Fussa, Japan
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Frequency Due Date Formula

    daddylonglegs,

    Thank you so much! That is exactly what I needed for the due date!

    For the status, I've put the legend I'm using on a copy of the spreadsheet you sent. I already made a drop-down list for the choices for column D based on your input from the first spreadsheet. I also have conditional formatting already in place to automatically change the color of the cell based on the input.

    For the legend, here are some more details:

    COMPLETED OR CURRENT - The due date for this item is current (not due)
    NO RECORD OF COMPLETION - There is no data available for the start of this inspection item
    NOT IN SERVICE - Equipment item to be inspected is not currently in working condition
    FAILED - Inspection item failed and will require re-inspection
    INSPECTION OR TEST DUE - Due date has been reached or is within 30 days of being due
    NEWLY ADDED INSPECTION ITEM - New requirement, will need inspection asap or as required
    NOT BUILT YET - inspection item has not been created yet, this is pretty much a placeholder selection

    manual input of this from the drop-down list might work best for a few of those items, I mainly want the CURRENT and DUE items to automatically switch based on the due date.

    Thank you in advance for all of your help!!

    /Holli
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1