+ Reply to Thread
Results 1 to 6 of 6

Calculate Worked hours per week from a client dropdown list

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    ENGLAND
    MS-Off Ver
    Excel 2010
    Posts
    3

    Calculate Worked hours per week from a client dropdown list

    Hello , I am new to excel and only know the basics

    I am trying to do a rota for about 40 employees who work either Morning, Lunch,Tea, PM and Nights
    With a possibility of seeing upto 6 clients in a shift (Morning, Lunch,Tea, PM)
    Visiting Various clients with different needs.
    I have a dropdown list in each cell for the (clients) eg - BS , MH , JJ , DD , KB ,WC etc
    Client visit times can vary from 15,30,45 minutes to 1,hour and night shift would be 9 Hours.
    I can get get it to work for one entry but i am struggling to get more than one to add up
    The sum i have used is =(9)*COUNTIF(G5:L5:Q5:V5:AA5,("BS"))

    I have used a macro to select multiple items from dropdown list into one cell , this worked fine but i cannot get more than one client eg - "BS" + "MH" + "JJ" etc to add together to give a total hours worked after seven days.

    As i said i am only a beginner at excel and any advice will be much appreciated.
    Last edited by Garibaldi; 04-19-2013 at 01:30 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculate Worked hours per week from a client dropdown list

    HI Garibaldi,

    welcome to the forum.

    Please upload a sample file with your expected results. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    ENGLAND
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculate Worked hours per week from a client dropdown list

    Hello DiliPandey

    I have attached a file with a macro code which inserts more than one item from dropdown list into one cell.

    Sample A - I cannot get this to add up as there is more than one item (client) selected from the dropdown list.
    Is this possible to do ?
    Row AB5 is adding up for one client "BS" five night shifts (9hrs) giving 45 hrs

    My overall problem is trying to add multiple clients together over seven days to get a weekly total of hours worked

    Regards Garibaldi
    Attached Files Attached Files
    Last edited by Garibaldi; 04-19-2013 at 01:31 PM. Reason: updated

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculate Worked hours per week from a client dropdown list

    Okay.. see the attached file - yellow highlighted row where I obtained results for multiple clients. Thanks.

    Sample A - Staff Rota with macro.xlsm

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    ENGLAND
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Calculate Worked hours per week from a client dropdown list

    Hello
    Thankyou this is a great start.
    I have tried to change the {9*= to {0.3* Is there a reason why it does not work when i change this.

    Regards Garibaldi

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculate Worked hours per week from a client dropdown list

    while changing, ignore { bracket as this would come automatically when you press key combination ctrl shift enter after changing 9 to 0.3. thanks.



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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