+ Reply to Thread
Results 1 to 5 of 5

Checking Validity of Vaccination Records

  1. #1
    Registered User
    Join Date
    09-28-2009
    Location
    kuwait
    MS-Off Ver
    MS365 MSO 16.2.13127.21624
    Posts
    29

    Checking Validity of Vaccination Records

    I am seeking assistance to fix a formula on my office vaccination records data sheet.

    Each employee vaccination record dates are listed in Column A, B, & C. Some have not taken any dozes, while others have taken just one doze, and some all three dozes. Column E needs to reflect their last taken doze plus x number of months. In this case, I have listed 9 months. If that date is in the past, Column F should show is Expired. If the date is less than 9 months, it shows up as Valid.

    To summarize this "IF Column D is not a blank, then, add 9 months to it in Column E. If it is a blank, then read Column C and add 9 months to it in Column E. "

    Any help would be most appreciated.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Checking Validity of Vaccination Records

    You can use this formula in E2:

    =IF(D2="",IF(C2="",IF(B2="","",EDATE(B2,9)),EDATE(C2,9)),EDATE(D2,9))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Checking Validity of Vaccination Records

    Sorry, I overlooked the second part of your request. Put this formula in F2:

    =IF(OR(E2="",E2 < TODAY()),"Expired","Valid")

    and copy down.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-28-2009
    Location
    kuwait
    MS-Off Ver
    MS365 MSO 16.2.13127.21624
    Posts
    29

    Re: Checking Validity of Vaccination Records

    Thanks Pete.. Works perfectly. Cheers..

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Checking Validity of Vaccination Records

    Glad to help. and thanks for marking the thread as Solved.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Checking the right sequence of records
    By Szwadron6 in forum Excel General
    Replies: 7
    Last Post: 01-18-2017, 10:46 PM
  2. Hyperlink Validity
    By Vkrage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2016, 07:48 AM
  3. Replies: 1
    Last Post: 04-24-2012, 09:05 PM
  4. Checking Validity of a File Path
    By FRIEL in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2010, 06:50 AM
  5. Checking records
    By gmoney10111 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2007, 05:48 PM
  6. Checking dB for New Records Using DAO??
    By Trip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2005, 07:05 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