+ Reply to Thread
Results 1 to 4 of 4

Calculating days checked out from a date range

  1. #1
    Registered User
    Join Date
    08-26-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2013
    Posts
    3

    Calculating days checked out from a date range

    Hello, all:

    Our organization has a loaner pool of several different kinds of laptops and mi-fi devices that are available for check-out. Each full-cycle transaction (the device type, check-out date, return due date, and check-in date) is a row in an Excel spreadsheet. We need to calculate (and plot) the total number of laptops or mi-fi devices that are available so that we can know if we are maintaining the right number of devices in our loaner pool. We are not only interested in the current status of our loaner pool, but also the total number of devices that were in the checked-out or checked-in state per day (i.e., for each row) within a given range of dates in the past (for trending).

    We have tried explicitly running columns for the date range of interest out to the right of the check-in dates for each transaction record, calculating “IN” or “OUT” for each date in the range, (as in the attached file), but that method quickly gets out of hand for date ranges of more than a couple of months. Please note that the logic is still not correct for calculating "IN" or "OUT" (I'm still working on it). The chart at the bottom of the data is a good representation of what we are trying to generate, but it was done using explicit columns.

    Is there a better way to calculate, count and plot the status of each loaner pool item within the date range without explicitly listing every date as a column?

    Any help you could give me would be greatly appreciated. Thanks in advance ...

    Philip
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Calculating days checked out from a date range

    To prepare such graph you do not need whole "matrix" you just need a list of days (let's assume it is in Q2:Qxxx range). Then in R2 (and copy down) simple formula with two COUNTIFS functions - one to count checkedout before that date and checked in after that date, and second for checked out but having empty checked in cell.:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-26-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculating days checked out from a date range

    Perfect!! Thank you very much, Kaper!!

  4. #4
    Registered User
    Join Date
    08-26-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2013
    Posts
    3

    Re: Calculating days checked out from a date range

    Hi, Kaper: I've been away for a few days and I'm still digesting your solution. I have a follow-up question: Is there a way to calculate the days that are "checked out" within the data range that will allow me to do pivot charts on the columns (i.e., Seat Type, Seat Category, etc.) that are associated with the row data?

+ 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. Formula for calculating patient days with selected date range
    By HospitalOfficer in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-01-2014, 10:37 PM
  2. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 PM
  3. Replies: 6
    Last Post: 09-06-2005, 02:05 AM
  4. Replies: 6
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 12:05 AM
  6. Replies: 6
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] Calculating recurring date in following month, calculating # days in that period
    By Walterius in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-05-2005, 10: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