+ Reply to Thread
Results 1 to 9 of 9

Newbie Question - Weekly Schedule totals

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Newbie Question - Weekly Schedule totals

    Hello there! New to the forums but the have already been a big help. But I am stuck and am just learning the basics of Excel. I am doing a weekly work schedule (Sunday to Saturday) and I am using a dropdown list to add the appropriate shifts that I need for each day of the week. I have used a formula to give each shift in the dropdown menu a value in a different cell (ie. 0900-1730 = 8.5). I would like a totals column at the end of each week totaling the hours scheduled. Is this possible? I am using Excel 2010.

    Tahnk-you

  2. #2
    Registered User
    Join Date
    07-19-2010
    Location
    Bucharest
    MS-Off Ver
    Office 2007
    Posts
    29

    Re: Newbie Question - Weekly Schedule totals

    can you attach your file here please ?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Newbie Question - Weekly Schedule totals

    Hi and welcome to the forum

    Hard to be specific without seeing what you are working with, but it sounds like you could use either sumif() to add up all the times, or countif() to count the number of times a shift appears, andthen * that by the hours in a shift?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-24-2014
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Newbie Question - Weekly Schedule totals

    Quote Originally Posted by taccoo73 View Post
    can you attach your file here please ?
    Sure. Here is a s file with the portion I am looking at.sch template.xlsx
    I hope this helps.

    Thanks again
    Cheers

  5. #5
    Registered User
    Join Date
    01-24-2014
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Newbie Question - Weekly Schedule totals

    My apologies. Here is the template with a before and after tab.
    heers

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    Hard to be specific without seeing what you are working with, but it sounds like you could use either sumif() to add up all the times, or countif() to count the number of times a shift appears, andthen * that by the hours in a shift?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Newbie Question - Weekly Schedule totals

    First, the cells in your Total row are all formatted as Text - change it to General (or whatever number format you want your numbers in).

    Next, here is the formula I put together:
    =IF(ISNA(VLOOKUP(B4,$N$3:$O$40,2,FALSE)),0,VLOOKUP(B4,$N$3:$O$40,2,FALSE))+IF(ISNA(VLOOKUP(B5,$N$3:$O$40,2,FALSE)),0,VLOOKUP(B5,$N$3:$O$40,2,FALSE))+IF(ISNA(VLOOKUP(B6,$N$3:$O$40,2,FALSE)),0,VLOOKUP(B6,$N$3:$O$40,2,FALSE))+IF(ISNA(VLOOKUP(B7,$N$3:$O$40,2,FALSE)),0,VLOOKUP(B7,$N$3:$O$40,2,FALSE))+IF(ISNA(VLOOKUP(B8,$N$3:$O$40,2,FALSE)),0,VLOOKUP(B8,$N$3:$O$40,2,FALSE))

    Put this in B9 and drag it across. It is just a repeating VLOOKUP formula, using the IF statement to change any #NA errors into 0.

  7. #7
    Forum Contributor
    Join Date
    08-29-2011
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    171

    Re: Newbie Question - Weekly Schedule totals

    Also, a good idea would be to name the range being used, like using the name TimeTable for the range $N$3:$O$40. (Formulas ribbon, Defined Names group, look for Name Manager)

    Then, you could use:
    =IF(ISNA(VLOOKUP(B4,TimeTable,2,FALSE)),0,VLOOKUP(B4,TimeTable,2,FALSE))+IF(ISNA(VLOOKUP(B5,TimeTable,2,FALSE)),0,VLOOKUP(B5,TimeTable,2,FALSE))+IF(ISNA(VLOOKUP(B6,TimeTable,2,FALSE)),0,VLOOKUP(B6,TimeTable,2,FALSE))+IF(ISNA(VLOOKUP(B7,TimeTable,2,FALSE)),0,VLOOKUP(B7,TimeTable,2,FALSE))+IF(ISNA(VLOOKUP(B8,TimeTable,2,FALSE)),0,VLOOKUP(B8,TimeTable,2,FALSE))

  8. #8
    Registered User
    Join Date
    01-24-2014
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Newbie Question - Weekly Schedule totals

    Wow, thank you. that was a great help!

    Cheers

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Newbie Question - Weekly Schedule totals

    I notice that the file you uploaded indicates 2007 or later (.xlsx), but your profile says 2003. Please update your profile as necessary, members tailor questions based on your excel version

    This means you can use the IFERROR() function and cut that formula in 1/2....

    =IFerror(VLOOKUP(B4,TimeTable,2,FALSE),0)+IFerror(VLOOKUP(B5,TimeTable,2,FALSE),0)+IFerror(VLOOKUP(B6,TimeTable,2,FALSE),0)+IFerror(VLOOKUP(B7,TimeTable,2,FALSE),0)+IFerror(VLOOKUP(B8,TimeTable,2,FALSE),0)

+ 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. [SOLVED] How to get cumulative totals from weekly totals (IE sum of all previous cells)?
    By moeburn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2013, 07:29 PM
  2. [SOLVED] Sum workday totals on one sheet to weekly totals on another
    By BryanD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2013, 10:08 AM
  3. [SOLVED] How do I group daily totals into weekly/monthly/quarterly totals
    By situationroom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2013, 09:58 AM
  4. Weekly Schedule...
    By Yahtzee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-04-2007, 06:14 PM
  5. Summing Weekly Totals into Monthly Totals
    By steph44haf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 11:55 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