+ Reply to Thread
Results 1 to 8 of 8

Formula Assistance with Lists and Dates

  1. #1
    Registered User
    Join Date
    02-02-2009
    Location
    82001
    MS-Off Ver
    Excel 2003
    Posts
    4

    Formula Assistance with Lists and Dates

    Okay - so I am not too hip on excel and am having troubles with what I am needing to do. My boss has tasked me to fix the work order log we use, and since he has complicated things, it needs modified.

    Basically we list jobs that we do as a Priority 1 through 4.

    We then list the date that we received the work order, the due date, and the date completed.

    The only boxes I am concerned with are the priority, date received and date due.

    The Priority box is a drop down menu.... and obviously the options are 1, 2, 3 and 4.

    The date received box is formatted as follows - 2009-02-02 (for example).

    The date due depends on the priority.

    Priority 1 = 1 days
    Priority 2 = 3 days
    Prioirty 3 = 10 days
    Priority 4 = 14 days

    Priority is in column B, Date Received is in column E, and date due is in column F.

    I'd like the date due to be automatically filled in depending on the priority and date received.

    If you need more information to assist with this, or have other suggestions to what may work, please let me know. This has my brain scrambled.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Assistance with Lists and Dates

    Try this with B2 as priority and C2 as date received:

    =C2+LOOKUP(B2,{1,2,3,4},{1,3,10,14})

    Or you can add a check to make sure the priority has been set first:

    =IF(B2<>"",C2+LOOKUP(B2,{1,2,3,4},{1,3,10,14}),"")
    Last edited by JBeaucaire; 02-02-2009 at 06:08 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-02-2009
    Location
    82001
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula Assistance with Lists and Dates

    I cannot move them because I have the type of work we do in column C and the last name of the person in D.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Assistance with Lists and Dates

    I'm not asking you to move them, I'm showing you the format to use. Change the cell references to suit your data. Or post a sample sheet.

    =E2+LOOKUP(B2,{1,2,3,4},{1,3,10,14})

    Sorry, I actually forgot the sentence where you did give the rows, edited above.
    Last edited by JBeaucaire; 02-02-2009 at 06:11 PM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula Assistance with Lists and Dates

    In column F, assuming row 2, enter this formula dragged down;
    Please Login or Register  to view this content.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    02-02-2009
    Location
    82001
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula Assistance with Lists and Dates

    Okay, here's the form...
    Attached Files Attached Files

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula Assistance with Lists and Dates

    Here you go, just used the formula I suggested above, reversing the results since they were backwards.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-02-2009
    Location
    82001
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Formula Assistance with Lists and Dates

    Naw you had it right when you posted it above. Thanks for your help though. This is great!

+ 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