+ Reply to Thread
Results 1 to 5 of 5

Formula for duplicate referral - same condition or repeat within 30-90 days

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Formula for duplicate referral - same condition or repeat within 30-90 days

    Kia ora All

    I wish to create a spreadsheet which has formulas which would enable me to see if a patient has had more than one referral created within the next 30-90 days [the actual number of days not important - the ability to modify the formula to reflect which time period required would be cool] and also to see if a patient has been referred for the same medical condition again. Thus in my mind at least two different formulas - has the patient been referred again within a time period of days and has the patient been referred again for the same medical condition.

    Attached is an example referral spreadsheet I have created
    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
    25,440

    Re: Formula for duplicate referral - same condition or repeat within 30-90 days

    I thought that was an orange drink !!

    You need to fix your dates in column D - highlight the column, click on Data | Text-to-Columns then click Finish. Then you can have this formula in J2:

    =IF(COUNTIFS(A$2:A2,A2,D$2:D2,">"&D2-30,D$2:D2,"<="&D2)>1,"Yes","")

    which looks back at 30 days (change the value in red for different periods), and this formula in K2:

    =IF(COUNTIFS(E$2:E2,E2,A$2:A2,A2)>1,"Yes","")

    Copy the formulae down the table.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for duplicate referral - same condition or repeat within 30-90 days

    Thanks Pete - solved my problem

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

    Re: Formula for duplicate referral - same condition or repeat within 30-90 days

    Glad to hear it.

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

    Also, since you are relatively new to the forum, I would like to inform you 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

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula for duplicate referral - same condition or repeat within 30-90 days

    Thanks Pete

    For the answer and the how to tidy up the closing and reputation adding stuff. Have completed

    Thanks

+ 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] Mark duplicate referrals which occur with 30/60/90 days for same medical condition
    By jason_guest in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-12-2014, 06:59 AM
  2. Replies: 8
    Last Post: 07-13-2012, 09:02 AM
  3. Replies: 7
    Last Post: 04-26-2010, 06:51 PM
  4. Eliminate the formula referral of a cell content
    By Antoaneta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2006, 11:40 AM
  5. [SOLVED] Pasting constant formula where referral sheet changes
    By Nicole M. in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-01-2006, 04:00 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