+ Reply to Thread
Results 1 to 5 of 5

Calculating Date Based on Priority

  1. #1
    Registered User
    Join Date
    03-16-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    4

    Calculating Date Based on Priority

    I need assistance with creating a spread sheet for my work colleagues that is capable of calculating dates based on three priorities. I have four different priorities of low, medium, high and extreme.

    Low priority-75 Days
    Medium priority-52 Days
    High priority-25 Days
    Extreme priority-15 Days

    These priorities would be placed in column A. In column B would be the dates the initial order was received. Column C would be the calculated date the order must be completed. I know the simple solution is to just place the days in column A and just add column A to column B, but I need to have column A with those labels to simplify the process for the various individuals inputting the data...

    Example 1:
    A1 - Low, B1 - 1 Jan 17, C1 - 17 Mar 17

    Example 2:
    A1 - Medium, B1 - 1 Jan 17, C1 - 22 Feb 17

    Example 3:
    A1 - High, B1 - 1 Jan 17, C1 - 26 Jan 17

    Example 4:
    A1- Extreme, B1 - 1 Jan 17, C1 - 16 Jan 17

    Any assistance would be very much appreciated! Thank you for your time!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,380

    Re: Calculating Date Based on Priority

    Are you allowed to put that table somewhere in the spreadsheet to use as a lookup table? I would simply put that table into the sheet, then use one of Excel's lookup functions https://support.office.com/en-us/art...8-93a18ad188a1

    C1=B1+VLOOKUP(A1,absolute_reference_to_lookup_table,2,FALSE)
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-16-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Calculating Date Based on Priority

    MrShorty,

    That is a great solution to the problem. The only question I have, how would it change the formula if I wanted to do the lookup table on sheet 2 instead of sheet 1 where my colleges would enter the data?

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,380

    Re: Calculating Date Based on Priority

    References to other sheets in the same workbook simply need the sheet name +! added to the reference
    'sheet1'!$A1:$C5 would refer to A1:C5 on sheet1. The single quotes are only needed when the sheet name contains certain characters, so this reference technically does not need the single quotes around the sheet name. I find that the easiest way to make certain the syntax is correct is to "point and click" on the range (while entering the formula, use the mouse or arrow keys to select the desired range on the desired tab). Excel will enter the reference with the correct syntax.

  5. #5
    Registered User
    Join Date
    03-16-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Calculating Date Based on Priority

    Works Perfect! Thank you for your assistance and time MrShorty! Below is the breakdown for my situation as an example.


    =B2+VLOOKUP(A2,Sheet2!A2:B5,2,FALSE)


    1.
    B2=Available Date

    2.
    VLOOKUP=Command to perform action

    3.
    A2=Priority Category (Low, Medium, High, Critical)

    4.
    Sheet2!=Sheet with the Table Data (only necessary if you place table data on another sheet)

    5.
    A2:B5=Table Data Range
    (Sheet2!A2=Low
    Sheet2!A3=Medium
    Sheet2!A4=High
    Sheet2!A5=Critical
    Sheet2!B2=75
    Sheet2!B3=52
    Sheet2!B4=25
    Sheet2!B5=15)

    6.
    2= Which column of table data to display. In my case I want the number of days, column 2, to add to the date available in B2.

    7.
    False=Give exact match for data in table
    Last edited by MrPifster; 03-16-2017 at 05:54 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Calculating Target Date/Time Based on Start date and hours - Excel 2007
    By chinraj in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-09-2019, 01:43 AM
  2. [SOLVED] Calculating a future date based on a specific cell date
    By Teuchter029 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-23-2015, 05:30 PM
  3. Removing duplicates based on priority and date
    By booztarsd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2015, 09:48 AM
  4. Formulas Calculating Age based on Date of Birth & Date of Death
    By MELLOW YELLOW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2014, 03:27 PM
  5. Returning BLANK date PRIORITY before Newest/Latest Date
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2013, 04:43 PM
  6. [SOLVED] Formula for calculating a new date based on an existing date and other cell criteria
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 09:49 AM
  7. sort data based on date and time priority
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-19-2010, 02:55 PM

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