• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to Calculate the interval of event occurrence

Tom2

New Member
Hello Excel Experts,

I'm a newbie in Excel. Like to get some advice about how to use formulas to reorganize a data matrix and then calculate the interval of event occurrence. Please find attached raw data and expected results with detailed conditions. Thank you very much for your time.

Data: The hospital admission and discharge
Goal: Calculate the interval between 1st discharge and 1st re-admission (after 1st discharge) in days. The logic is to detect if there is re-admission occurrence after 1st discharge within the measurement period and then calculate the interval of occurrence if applied.

Results:64599
 

Attachments

  • sample data.xlsx
    15.4 KB · Views: 6
Tom2
Interesting terms ...
... which ... could those all find from Your sample?
Some of those could find at once ... with Pivot-table
 

Attachments

  • sample data.xlsx
    24 KB · Views: 6
Tom2
Interesting terms ...
... which ... could those all find from Your sample?
Some of those could find at once ... with Pivot-table

Hello vletm,

Thank you for trying to help me out but looks like Pivot-Table cannot answer my questions. Is it possible using formulas to implement what I need? Thank you very much for your time and help!
 
Hi, to both!

@Tom2, check the file, with one option with formulas.

P.D. The data must sorted by Clients and by Admitted Date. Blessings!
 

Attachments

  • sample data.xlsx
    19.6 KB · Views: 9
Back
Top