+ Reply to Thread
Results 1 to 4 of 4

need help with a scheduling program for nurses

  1. #1
    Registered User
    Join Date
    11-02-2006
    Posts
    2

    need help with a scheduling program for nurses

    not sure where to go, work in a hospital that does not have a scheduling program. WOuld like to come up with one that would work...need to input codes for example if a nurse works days it would say A (i need this to count for 7 am-7pm) P (would need to count for 7pm-7am) D (645-315) F ( 11 am- 11pm) E (9-5)etc. Need to have the collums add up the total of nurses


    A
    A
    A
    A
    F
    D
    P
    p

    TOTAL DAYS:6
    TOTAL EVEA:5
    TOTAL EVEp2.5
    noc:2

    I Hope i added this up right, any help or suggections would be great!!!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    I would suggest user defined functions here which would understand if the code fell into the day or evening category etc.

    Something like

    Function NurseCountDay(MyRange As Range)
    NurseCountDay = 0
    For Each Cell In MyRange
    If Cell = "A" Or Cell = "D" Or Cell = "E" Then
    NurseCountDay = NurseCountDay + 1
    End If
    Next Cell
    End Function
    Martin

  3. #3
    Registered User
    Join Date
    11-02-2006
    Posts
    2

    How do you do user defined functions?

    How do you do user defined functions. Thanks any help would be great.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    You need to go to the VBA editor - Alt F11

    Right Click on the workbook in the left hand pane and select add module

    Paste the function I originally supplied into this blank sheet and edit as appropriate.

    Go back to the Excel worksheet - Alt F11

    Do Insert - Function. Select user defined and you should see the new function in the list.

    Select the range of cells for the function to operate on and the cell should contain the answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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