+ Reply to Thread
Results 1 to 6 of 6

Google Sheet: Admission System in a hospital-like Facility.

  1. #1
    Registered User
    Join Date
    05-08-2020
    Location
    India
    MS-Off Ver
    google sheet
    Posts
    12

    Google Sheet: Admission System in a hospital-like Facility.

    Trying to keep records of an admission process of a facility comprising some 800+ beds on Google spreadsheet which is otherwise difficult manually.

    We start by allocating a unique bed no. to each visitors on sheet-1 from a drop down menu of "vacant pool of beds" (as mentioned on sheet no.2. )
    If there isn't a release/discharge date present , then the bed is considered to be "OCCUPIED" else "VACANT". if a bed is Vacant it will again be on the "Vacant bed pool". At the end of the day, I want to have the list of vacant beds in each blocks (B,C,D,E & CCC).
    Please feel free to modify the file and its format in any way to achieve the objective.

    No too sure if i made sense here.. In short, I want to automate the allocation of rooms where people wouldn't stay for long (maybe a week or so) using spreadsheets.
    Much Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Google Sheet: Admission System in a hospital-like Facility.

    I assume that all of this will work on google sheets, if not perhaps someone that knows google sheet formula syntax will be able to make the conversions.
    1. Put the bed statuses into two columns bed no. and vacant
    2. The vacant column is populated using: =IFERROR(INDEX('BED ALLOCATION'!H$2:H$16,MATCH(C2,'BED ALLOCATION'!G$2:G$16,0))>0,TRUE)
    This assumes that if there is a date in the date of discharge/release column that the bed is vacant.
    3. The "VACANT BED POOL All Blocks" column is populated using: =IF(ROWS(A$1:A1)>COUNTIFS(D$2:D$897,TRUE),"",INDEX(C$2:C$897,AGGREGATE(15,6,(ROW(C$2:C$897)-ROW(C$1))/(D$2:D$897),ROWS(A$1:A1))))
    4. The data validation dropdown on the bed allocation sheet has the source: =OFFSET('BED STATUS'!R$2,0,0,COUNTIFS('BED STATUS'!R$2:R$897,"?*"))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    05-08-2020
    Location
    India
    MS-Off Ver
    google sheet
    Posts
    12

    Re: Google Sheet: Admission System in a hospital-like Facility.

    Thank you for your time and response.
    On the excel file which you sent, everything seems to work just fine until it was noticed that after the BED has been "VACANT". It can be allocated to 3 different persons again. Screenshots attached. Doesn't solve the problem yet.
    Thanks once again.
    Attached Images Attached Images

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Google Sheet: Admission System in a hospital-like Facility.

    I should have used one of the following Excel formulas in column D on the bed status sheet:
    =IFERROR(INDEX('BED ALLOCATION'!H$2:H$16,MAX(IF('BED ALLOCATION'!G$2:G$16=C2,(ROW(H$2:H$16)-ROW(H$1))),1))>0,TRUE)
    Note that the formula above is array entered which means that it is not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    =IFERROR(INDEX('BED ALLOCATION'!H$2:H$16,AGGREGATE(14,6,(ROW(H$2:H$16)-ROW(H$1))/('BED ALLOCATION'!G$2:G$16=C2),1))>0,TRUE)
    I don't believe that there is an AGGREGATE function in google sheets, and not sure how array functions work in google sheets. Hopefully one of the other contributors can help with that.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    05-08-2020
    Location
    India
    MS-Off Ver
    google sheet
    Posts
    12

    Re: Google Sheet: Admission System in a hospital-like Facility.

    Thank you. It works on excel. Wish I also had a way to generate reports on Number of Beds Vacant/Occupied on a list for each Blocks.

    But, since the bed allocation is supposed to be multi counter, I preferred Google spreadsheets. So that multi users could allocate the rooms.
    For, the other Spreadsheet GURUs on the forum, I am sending a link to the spreadsheet.

    The link to a spreadsheet (copy file) is : docs.google.com/spreadsheets/d/1gUmE7V0CSaWKgXtVDOQv9pGHk0y1mXqtvlylefa5nqY/edit?usp=sharing[/url]

    Thank you.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Google Sheet: Admission System in a hospital-like Facility.

    If you would like to see a count of the beds that are occupied and vacant by block then you could:
    1. List the blocks in cells L4:L8
    2. Use Vacant and Occupied in M3:N3 respectively as column headings.
    3. Populate the vacant column using: =COUNTIFS('BED STATUS'!$D$2:$D$897,TRUE,'BED STATUS'!$B$2:$B$897,$L4)
    4. Populated the occupied column using: =COUNTIFS('BED STATUS'!$D$2:$D$897,FALSE,'BED STATUS'!$B$2:$B$897,$L4)
    Going back to the topic of array formulas, linked below is an article on using them in google sheets. If I understand correctly then the first formula from post #4 could be modified to read:
    =ARRAYFORMULA(IFERROR(INDEX('BED ALLOCATION'!H$2:H$16,MAX(IF('BED ALLOCATION'!G$2:G$16=C2,(ROW(H$2:H$16)-ROW(H$1))),1))>0,TRUE))
    Note that the formula above is untested and may need modification.
    https://support.google.com/docs/answer/3093275?hl=en
    Attached Files Attached Files

+ 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. User want the Outline facility in a column rather than off edge of sheet!
    By Ochimus in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-09-2019, 05:00 PM
  2. Google Sheet & Google Docs
    By asherryan in forum Excel General
    Replies: 1
    Last Post: 09-21-2018, 08:48 AM
  3. Replies: 1
    Last Post: 02-28-2017, 02:06 PM
  4. Replies: 2
    Last Post: 01-02-2015, 07:53 AM
  5. Sheet Has Lost the 'UNDO' Facility
    By BazzaBoy in forum Excel General
    Replies: 4
    Last Post: 06-23-2009, 11:13 PM
  6. Count If-admission times to different floors
    By Denise in forum Excel General
    Replies: 4
    Last Post: 10-17-2005, 01:05 PM
  7. [SOLVED] Calculating Age of person on admission date
    By Alan in forum Excel General
    Replies: 10
    Last Post: 10-08-2005, 02:05 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