+ Reply to Thread
Results 1 to 6 of 6

Calculate Hours Ignoring Empty Cells

  1. #1
    Registered User
    Join Date
    08-14-2010
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Calculate Hours Ignoring Empty Cells

    I am creating a weekly work schedule and want to add hours scheduled for the week. I am able to calculate the hours but having trouble ignorning the days that an employee does not work.
    Here's my example of an emplyee that was not scheduled for Sat.
    Can someone pls help me with this?



    G3 = 11:00 AM
    G4 = 3:00 PM
    H3 = Blank
    H4 = Blank
    I3 = 5:00 PM
    I4 = 8:00 PM
    J3 = total hours for week - difference of G4 and G3 plus difference of I3 and I4
    Last edited by robinrobin; 08-14-2010 at 09:10 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculate Hours Ignoring Empty Cells

    This is a basic timekeeping sheet using your layout.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-14-2010
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Calculate Hours Ignoring Empty Cells

    Thank you.
    Since there are multiple employees (going down the sprdsht), I was hoping to calculate the total in a cell in column J for each employee. So for example J3 would contain the formula that adds the scheduled hours for an employee and ignores the days the employee is not scheduled.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculate Hours Ignoring Empty Cells

    Here are a couple more basic designs, the first one I think is what you were after.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-14-2010
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Calculate Hours Ignoring Empty Cells

    This is exactly what I was looking for.
    Thank you!
    RR

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Calculate Hours Ignoring Empty Cells

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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