+ Reply to Thread
Results 1 to 9 of 9

Waiting list

  1. #1
    Registered User
    Join Date
    11-17-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Waiting list

    Hi to all experts of this forum,

    I want to create a waiting list for patients at a rural health care NGO in India. All patients are given Numbers (column B,D and F) and are allocated to specific doctors A,B and/or C in Row 1.
    Some patients are allocated to several doctors but if that is the case, they can not be mentioned in two waiting lists at the same time.

    The waiting list is B14:G24. Here the patients are supposed to be listed if they're not already served, which would be noted as a 1 in column C, E or G.

    So the task, that I am unable so solve is to list all the patients that have a 0 next to their number in the concerning waiting list.
    After a patient is served and he gets a 1 instead of a 0 next to his number, he is supposed to dissapear from the waiting list and the next patient with a 0 should appear at the very bottom of the list. The so far second in the list should move up to the place of the first one.

    I would be so happy if someone could give me some help to fill the cells of the waiting list. I tried it with the index function for a long time, but it didnt work.

    Kind Regards
    Praveen
    Attached Files Attached Files
    Last edited by IIMA; 11-17-2018 at 03:42 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Waiting list

    Hi Praveen

    You should be using Macros for this.

    My First Impression is that this could be expanded to make this really useful.

    Ok Part One.

    This Deletes a Patient from the queue when you change their status to 1.

    Right Click On Your Sheet Name At the Bottom Of Excel and Select View Code
    Paste this code in the module that opens and close it.

    Please Login or Register  to view this content.


    This extended Version Allows you to add new patients to any queue.
    NB: It deletes any previous entry for that patient.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-17-2018 at 04:50 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-17-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Re: Waiting list

    Hello mehmetcik,

    Firstly, thank you very very much for the work you put into that macro!
    I have no idea about those, but one issue I haven’t stated clearly enough is: When a patient appears in two lists, he is (1) supposed to disappear from the one, but (2) once he is being served from e.g. doctor A but not B yet although he needs treatment of both, he should be put back into the list of doctor B. Is it possible to adjust the macro in such a way?

    Beside that problem your macro is very helpful already! And I am so amazed that you answered so quickly with such a detailed outline!

    Kind regards,

    Praveen

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Waiting list

    Ok

    Try this version.

    Select Cell A5

    Enter 15ABC

    Then Select B5 and enter 1.


    I think that will work for you.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-17-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Re: Waiting list

    Again, thanks a lot for your work!

    But it doesnt really work

    I entered "15ABC" in the cell A5 and "1" in the cell B5. If i understood your instructions wrong, I'm very sorry. I tried to put e.g. a patient with the number 4 into list A, then into list B. Consequently he dissapears from list A, but after I put a 1 next to his number in list B, he doesnt appear again in list A again.

    Again, the only thing that I am missing is that a patient is added to a list after he is removed from the same due to his apperance in the list of another doctor.

    Best regards,
    Praveen

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Waiting list

    Ok do this.

    Enter 14ABC into Cell A5 ............... You are saying Patient 14 is in Waiting List A, but he also needs to see doctor B and C.

    Enter 1 into Cell B5 ............... You are saying that Patient 14 has seen Doctor A.
    14ABC will disappear From Cell A5
    However 14BC will Appear in Column D.
    This means that Patient 14 is in Waiting List B, but he also needs to see doctor C.

    Enter 1 next to 14BC ............... You are saying that Patient 14 has seen Doctor B.
    14ABC will disappear and you will see 14C in Column F
    This means that Patient 14 is in Waiting List C, Waiting to see doctor C.



    I have improved the sorter subroutine.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-18-2018 at 05:17 PM.

  7. #7
    Registered User
    Join Date
    11-17-2018
    Location
    India
    MS-Off Ver
    2010
    Posts
    4

    Re: Waiting list

    Unfortunately it is not working. are you sure you described the proceeding correctly?

    Best wishes
    Praveen

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Waiting list

    Please try at B13 and copy over

    =IFERROR(INDEX(B$1:B$10,AGGREGATE(15,6,ROW($B$3:$B$10)/NOT(C$3:C$10),ROWS(B$14:B14))),"")
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Waiting list

    I think I attached a previous version. Try the attached a sample file.
    Attached Files Attached Files
    Last edited by mehmetcik; 11-21-2018 at 02:52 PM.

+ 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. Waiting for Query to be executed - waiting forever!
    By BHeup in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 07-01-2018, 11:52 PM
  2. Waiting List Removals
    By RollingStone88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2018, 09:51 AM
  3. Managing a waiting list
    By nejenkins in forum Excel General
    Replies: 5
    Last Post: 11-21-2014, 04:58 PM
  4. [SOLVED] Calculating Differences between dates for a Waiting List Calculation
    By richiev86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2014, 12:42 PM
  5. Suming an ongoing waiting list
    By sophy_1402 in forum Excel General
    Replies: 8
    Last Post: 08-23-2011, 07:03 AM
  6. Formula to record patients on an ongoing waiting list
    By sophy_1402 in forum Excel General
    Replies: 1
    Last Post: 08-18-2011, 07:58 AM
  7. Excel file for a waiting list
    By Jean-Yves23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2008, 05:34 PM

Tags for this Thread

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