+ Reply to Thread
Results 1 to 5 of 5

Count of consecutive dates as single occasion per patient

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Count of consecutive dates as single occasion per patient

    Hey I'm new to this forum but I have a question that I hope can be easily answered by someone more knowledgeable in Excel functions than myself. I looked at an old thread where someone was wanting to count the consecutive dates as a single occasion and the formula given works, however it utilizes the Networkdays function and I need to include any and all dates. This is for a count of consecutive dates per patient admission so weekends and holidays are to be included in this count.

    I couldn't figure out how to change this function to allow for weekends. Thank you. I greatly appreciate any help I can get with this. This is a report request that I have to manually put together and I'm just stumped.



    Function to count consecutive dates as one occasion
    =--((NETWORKDAYS(SUM(c1)*(B1=B2),c2)-1)>1)

    Column A Column B Column C Column D ( I would then use this column in a pivot table to calculate)
    pat name pat id date of service # Admissions

    ex:

    12345 07/22/2013 1
    12345 07/23/2013 0
    12345 11/01/2013 1
    67890 05/04/2014 1
    67890 05/05/2014 0 etc,

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Count of consecutive dates as single occasion per patient

    Hi,

    Welcome to the Forum.

    Can you please post a sample template in excel format with enough raw data and a desired result tab in it?

  3. #3
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Re: Count of consecutive dates as single occasion per patient

    Hi, thank you for your response. It happens that they have once again changed the scope of this query so I will have to fine tune the details and post the sample template you requested. I now need to not only count consecutive admission dates but also for only a particular doctor and for only certain CPT codes. Much of this can be done in SQL but I am hoping to bring it together in Excel with the help of this forum.

    Marlene

  4. #4
    Registered User
    Join Date
    06-02-2014
    Posts
    3

    Re: Count of consecutive dates as single occasion per patient

    I am attaching a template of sample patient data that I would expect to encounter. The Networkdays function used in column D works fine, but excludes weekend days which I need to be included in this count of admissions.

    Thank you very much for any help you can provide!!

    Marlene
    Attached Files Attached Files

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Count of consecutive dates as single occasion per patient

    Hi,

    I could not comprehend the requirement by going through the excel sheet uploaded by you, my apologies. Can you please insert a desired result tab and mock the output?

+ 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. Count multiple dates unique to patient
    By ktrobinson in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-18-2012, 10:52 PM
  2. Replies: 3
    Last Post: 02-16-2012, 01:51 PM
  3. Formula to Sum Charges Based on Dates for each Patient
    By chuckwud in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-27-2011, 11:03 AM
  4. Counting Consecutive Dates As A Single Occasion
    By SamuelT in forum Excel General
    Replies: 4
    Last Post: 02-16-2011, 06:23 AM
  5. Replies: 0
    Last Post: 05-04-2006, 11:10 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