+ Reply to Thread
Results 1 to 3 of 3

How to sum time depending on the day of the week

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    How to sum time depending on the day of the week

    Hi,

    I have been trying with little success to sum the hours expended on each day of the week within a range

    Any help as always greatly appreciated!

    Kevin
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to sum time depending on the day of the week

    hi kevin. you did not input the desired answers you wish you see. i am guessing in cell E3:
    =SUMPRODUCT((WEEKDAY($A$1:$A$27)=ROWS($E$3:E3))*$B$1:$B$27)

    i used ROWS to represent 1 to 7 based on your day sequence (sun = 1, Mon = 2, etc). you can also use this for Sunday:
    =SUMPRODUCT((WEEKDAY($A$1:$A$27)=1)*$B$1:$B$27)

    or if it's not in sequence:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: How to sum time depending on the day of the week

    Hi benishiryo,

    Sorry forgot to add desired results, I used =SUMPRODUCT((WEEKDAY($A$1:$A$27)=MATCH(D3,{"Sunday";"Monday";"Tuesday";"Wednesday";"Thursday";"Friday";"Saturday"},0))*$B$1:$B$27)
    and it works great

    Thanks
    Kevin

+ 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. Name file depending on the week's number
    By ced0802 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-06-2015, 08:55 PM
  2. [SOLVED] Conditional Formatting Depending on Day of the Week
    By Bisquick in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2013, 04:25 AM
  3. [SOLVED] Totaling cell values depending on week No.
    By WiReLaD in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 03-20-2013, 08:03 PM
  4. Is it possible to have formula change depending on Day of Week
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-07-2011, 07:03 AM
  5. Working hours in one week depending week no
    By Zsrinker2 in forum Excel General
    Replies: 2
    Last Post: 06-23-2010, 01:28 PM
  6. Automatically update week depending on the date
    By louisecarey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2010, 02:40 AM
  7. [SOLVED] run different macro depending of the day of the week
    By Tim in forum Excel General
    Replies: 2
    Last Post: 03-13-2006, 03:25 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