+ Reply to Thread
Results 1 to 6 of 6

Formula that if the criteria is met add 'for example' a year to a certain date

  1. #1
    Registered User
    Join Date
    07-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    17

    Formula that if the criteria is met add 'for example' a year to a certain date

    Basically i'm doing a spread sheet for vaccinations and would like it when i enter the date of what injection has been issued it automatically put the date to be renewed in another column, I've had a go but i am struggling

    =IF(AND(D3="DTPP",E3="1"),A3=DATE(YEAR(A3)+10,MONTH(A3)+0,DAY(A3)+0))

    So basically 'D3' is the injection and 'E3' will be the stage (1,2,3,B) so every injection at each stage will have different renewal dates so i am tryin to get it so that both critea is met take the date out of 'A3' and add so many days,months, years etc out and paste the answer in 'F3'

    Im prob way out with the formula so any help much appriecated

    Cheers

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Formula that if the criteria is met add 'for example' a year to a certain date

    I would suggest a lookup table with the number of months until the next injection with vaccination type in column A and stage in row 1, as per below
    1 2 3 B
    DTPP 1 3 12 12
    MMR 2 2 2 0
    Hep C 12 12 12 120

    You could then have a formula such as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by gak67; 08-27-2014 at 05:40 PM.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Registered User
    Join Date
    07-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula that if the criteria is met add 'for example' a year to a certain date

    After a bit of playing about finally got it to work, for some reason excel was automatically putting a * between the match's

    Thanks very much

    Ben

  4. #4
    Registered User
    Join Date
    07-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula that if the criteria is met add 'for example' a year to a certain date

    Hi again,

    I was told later that the rabies jab 2 is after week of the first one and rabies jab 3 if 6 weeks after that, I think EDATE only does months is there another date formula which would do weeks or even days and i could perhaps apply it just to the rabies jab??

    Many Thanks

    Ben

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Formula that if the criteria is met add 'for example' a year to a certain date

    Try this and put the number of days in for the rabies shots.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-06-2014
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    17

    Re: Formula that if the criteria is met add 'for example' a year to a certain date

    Gak67

    Worked great thanks a lot im really learning a lot here, I know what i want to achive in formulas its just using the right termanoligy

    Ben

+ 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. sum 'Year To Date' forecast based on row and date criteria.
    By oshodibo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2014, 03:53 AM
  2. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  3. [SOLVED] Keeping a date as current year, even though formula determines previous year
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2013, 08:31 PM
  4. [SOLVED] SUMIFS and Date Criteria (Month Year etc...) but without helper column?
    By JungleJme in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-16-2013, 07:21 AM
  5. Replies: 3
    Last Post: 08-14-2012, 05:14 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