+ Reply to Thread
Results 1 to 4 of 4

Add hours next to a given date

  1. #1
    Registered User
    Join Date
    08-13-2020
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    78

    Add hours next to a given date

    Hi
    I have a spreadsheet where I have dates and next to them hours for a given day.

    I want to add the hours total for a date - which I have done manually. Is it possible to have a function on col C, which adds the hours from a given date until another date. There can be different number of rows below a given date as can be seen on the spreadsheet.

    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Add hours next to a given date

    at C2 (array formula )
    IF(A2="","",SUM(OFFSET(B2,,,IFERROR(SMALL(IF(LEN($A$2:$A$24),ROW($A$2:$A$24)),COUNTA($A$2:A2)+1)-SMALL(IF(LEN($A$2:$A$24),ROW($A$2:$A$24)),COUNTA($A$2:A2)),100))))

    copy down

  3. #3
    Registered User
    Join Date
    08-13-2020
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    78

    Re: Add hours next to a given date

    Thanks Ghozi Alkatiri.

    Exactly what i wanted.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,378

    Re: Add hours next to a given date

    Cell C2 array formula , drag down

    HTML Code: 

+ 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. Replies: 2
    Last Post: 08-07-2017, 06:25 PM
  2. Replies: 2
    Last Post: 08-06-2017, 08:54 PM
  3. Replies: 8
    Last Post: 01-31-2016, 10:14 AM
  4. Replies: 3
    Last Post: 02-03-2015, 11:52 PM
  5. Calculate start date from finish date minus 14 working hours
    By PietBom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 07:23 PM
  6. Replies: 6
    Last Post: 03-25-2010, 07:50 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