+ Reply to Thread
Results 1 to 7 of 7

Help with multiple IF statements to calculate dates

  1. #1
    Registered User
    Join Date
    11-07-2005
    Posts
    2

    Help with multiple IF statements to calculate dates

    Hello all,

    I've searched through the Forum but couldn't find the exact thing I am seeking help with.

    I visit multiple clients on different visit schedules. Some are weekly visits, others monthly and some quartely (every three months).

    I have a basic Excel spreadsheet that lists their names, visit frequency, when I last visited them and when I am next due to visit them.

    It's not uncommon though for some clients to change their visit frequency. For example, I may have been seeing somebody monthly who then changes to be seen weekly going forward.

    What I would like to do is have Excel work out the 'Next Visit Due' date by looking at what I've entered in the 'Visit Frequency' column and the date of their last visit. This would save me having to manually change the formula, as if they currently change their Visit Frequency, I am manually changing the 'Next Visit Due' date.

    I've included a screenshot of some dummy data that shows what I am trying to achieve.

    Excel-Visits.png

    At the moment, for the first row, John Smith is seen weekly. I'm simply creating a formula in the 'Next Visit Due' cell to add 7 days on to the date of the 'Last Visit'. If I change the 'Visit Frequency' for John Smith to Monthly, I would like the 'Next Visit Due' to be 31 days in the future. If I change this to Quarterly, I would like this to be 92 days in the future.

    I've tried a few IF statements, but can't quite seem to get this to update as I want it to.

    Thank you all in advance.

    Mark

  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,036

    Re: Help with multiple IF statements to calculate dates

    Try:

    =IF(B2="","",C2+IF(B2="weekly",7,IF(B2="Monthly",31,92)))

    se sheet.
    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
    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,036

    Re: Help with multiple IF statements to calculate dates

    The sheet fell off!!!
    Attached Files Attached Files

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with multiple IF statements to calculate dates

    Another way would be this in D2 and copied down:
    =IFERROR(C2+LOOKUP(B2,{"Monthly","Quarterly","Weekly"},{31,92,7}),"")

    BSB

  5. #5
    Registered User
    Join Date
    11-07-2005
    Posts
    2

    Re: Help with multiple IF statements to calculate dates

    Thank you both, they both do exactly what I was looking for. Much appreciated!

    Regards,

    Mark

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with multiple IF statements to calculate dates

    Happy to help.

    Don't forget to mark the thread as SOLVED if you're happy you have a working solution.

    BSB

  7. #7
    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,036

    Re: Help with multiple IF statements to calculate dates

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 3
    Last Post: 02-05-2019, 06:02 PM
  2. [SOLVED] Multiple If statements with multiple then statements pulling from Index/Match commands
    By Reggie Wells in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2017, 03:25 PM
  3. Need to Calculate vacant days btwn 2 dates given multiple move in and move out dates
    By DemetriusFaulk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-19-2016, 03:22 PM
  4. [SOLVED] multiple if statements (i think) to calculate a due date
    By mharwell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-26-2016, 11:58 AM
  5. [SOLVED] Index/ if statements with multiple dates/ conditions
    By lejanco in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 03:25 PM
  6. Replies: 2
    Last Post: 10-07-2010, 09:27 PM
  7. Calculate dates/times using If Statements?
    By Roper99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2008, 05:25 AM

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