+ Reply to Thread
Results 1 to 4 of 4

Add additional days/weeks/months based on user input

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Add additional days/weeks/months based on user input

    Hi,

    I have three formulas which I would like to change based on a user input cell.

    The user must select either High, Medium or Low. Based on that decision the formula will populate the amount of time given to complete the task.

    e.g.
    Cell H9
    If High is selected then +1 Month
    If Medium is selected then +3 Weeks
    If Low is selected then +2 Weeks

    What’s the cleanest way to achieve this?

    Ideally I would like the solution within a formula rather than a lookup, if this is possible?

    I have attached an example.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Add additional days/weeks/months based on user input

    Try this out for size:

    =IF(F9="High",EDATE(G9,1),IF(F9="Medium",DATE(YEAR(G9),MONTH(G9),DAY(G9)+21),IF(F9="Low",DATE(YEAR(G9),MONTH(G9),DAY(G9)+14),"")))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Add additional days/weeks/months based on user input

    Love this Glenn! Worked brilliantly

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Add additional days/weeks/months based on user input

    You're welcome....

    G

+ 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. Autofill Months Based on User Input
    By jalex627 in forum Excel General
    Replies: 1
    Last Post: 07-08-2014, 03:24 PM
  2. VBA to Select Multiple Weeks in Pivot Table based on User Input
    By burrow.philip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2014, 11:36 AM
  3. [SOLVED] Adding additional formatted cells using user input
    By dannyjoer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2014, 08:36 AM
  4. Alot monthly volumes to particular days by weeks that span months
    By Vaslo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2013, 06:13 PM
  5. [SOLVED] Returning 'Number' of 'Days' or 'Weeks' or 'Months' with # and text
    By PERE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2013, 08:45 PM
  6. Additional input Boxes, based on answer to first input box
    By DrBball7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 05:38 AM
  7. Replies: 1
    Last Post: 01-21-2005, 12:06 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