+ Reply to Thread
Results 1 to 8 of 8

Trying to highlight hospital admissions that occured within 30 days of previous discharge

  1. #1
    Registered User
    Join Date
    12-20-2017
    Location
    England
    MS-Off Ver
    10
    Posts
    3

    Trying to highlight hospital admissions that occured within 30 days of previous discharge

    Greetings!
    I am a Data Clark working in a hospital in Scotland, UK. As Excel skills are limited but I manage to get by with what I need to do,... however I am now faced with the following problem and hoping someone on the forum can point me in the right direction. Any help will be much appreciated.

    I am working with hospital admission / discharge data using Excel 2010. My spreadsheet contains approximately 3000 rows. Amongst other columns, these are the ones that my problem relates to:
    Column A = Hospital No.
    Column B = Admission Date
    Column C = Discharge Date

    What I am trying to do is add two extra calculated columns:
    Column D = Admission Count (based on admission date order, this column will be the number of times the patient has visited hospital based on the data in the table)
    Column F = 30 days (this column needs to indicate if the admission date for this spell in hospital falls within 30 days or less of the previous discharge for this patient)

    The workaround I currently have is to order my data into Hospital No and date order and then base my calculation of the preceding row. The problem with this is that my figures change each time I filter or order columns. I’ve spent ages trying to find a solution. On the web I’ve noticed that other people have tried to find a solution to this but it’s either using PowerPivot or their problem is slightly different to mine and I am not able to modify the formula to suite my data. As you may have guessed my Excel skills are limited.

    Hope you can help. I will try attach some dummy data…

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

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    Hi glenbob and welcome to the forum.

    Couple of clarification questions:
    1) Will the data be in chronological order based on admission date?
    2) For the "Admission Count" do you require that to be "as of this date this patient has been admitted X times"?

    If you can attach a summy workbook (given the subject matter, make sure you desensitize the data!) that would help greatly.

    There are three buttons below the window you reply in. Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    BSB

  3. #3
    Registered User
    Join Date
    12-20-2017
    Location
    England
    MS-Off Ver
    10
    Posts
    3

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    Hi BadlySpelledBuoy
    Thanks for getting back to me.
    1. The data isn't in order. I usually sort and save it in order but then a colleague will go into the spread sheet and change the order so that it's based on another column.
    2. The admission count will be the number of times the patient has been admitted as of that date. IE it will not look forward but only into the past. Most patients will be a 1 but the readmissions will have a row with a 1, 2, 3,....
    I'll have another go at adding the attachment.
    Thanks
    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: Trying to highlight hospital admissions that occured within 30 days of previous discha

    This in D2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This in E2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note the second formula is an array formula and should be confirmed with Ctrl+Shft+Ent rather than just Ent.

    BSB
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-20-2017
    Location
    England
    MS-Off Ver
    10
    Posts
    3

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    BadlySpelledBuoy

    It's perfect! You are an absolute star. Thank you so much.
    I have been trying to solve this for ages now.
    Very much appreciated.
    Glenbob

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

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    No problem. Happy to help

    Only easy when you know how!!

    Take care.

    BSB

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    Try

    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

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

    Re: Trying to highlight hospital admissions that occured within 30 days of previous discha

    Hi Shukla, whilst those formulas will give the same results in the current data layout, if the data is sorted into any other order (as is mentioned in post #3) it will give false results in some instances.

    BSB

+ 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: 13
    Last Post: 09-22-2016, 09:18 AM
  2. [SOLVED] Conditionally Format to highlight 16 days on 12 days off schedule
    By cadamb in forum Excel General
    Replies: 10
    Last Post: 03-05-2015, 01:41 PM
  3. [SOLVED] Flow of river when discharge "Q" <20 cfs for more than 14 days continuously.
    By shivernoz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2013, 03:44 PM
  4. Replies: 3
    Last Post: 11-23-2012, 03:52 PM
  5. [SOLVED] Average of Numbers if occured in last 90 days..
    By ptho16 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2012, 01:29 PM
  6. Monthly hospital admissions data
    By z99tms in forum Excel General
    Replies: 8
    Last Post: 12-18-2008, 03:09 PM
  7. finding repeat admissions
    By Prium in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-10-2008, 06:10 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