+ Reply to Thread
Results 1 to 11 of 11

Sum every 12 entries on other sheet

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    Istanbul, Turkey
    MS-Off Ver
    2007
    Posts
    4

    Sum every 12 entries on other sheet

    Dear forum members,
    I work with a bi-hourly dataset and want to obtain the daily sum on another spreadsheet that does not require me to change the range manually. I have tried the offset function and read a corresponding entry on your forum, but do not seem to go anywhere.
    Note that I also use a multiplicator on the daily sum. Attached a sample spreadsheet.
    Your help is highly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sum every 12 entries on other sheet

    My suggestion would be to change the format of your hourly reports so that the correct date is in each entry (i.e. the date changes at midnight not midday) and use:
    =SUMIF(HOURLY!A1:A1000,DAILY!A11,OFFSET(HOURLY!B1:B1000,0,MATCH(DAILY!B$2,HOURLY!C$2:AT$2,0)))

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Sum every 12 entries on other sheet

    Copy this into B3 of DAILY. Then drag across & down. Should be fine!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Glenn Kennedy; 08-12-2014 at 11:09 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sum every 12 entries on other sheet

    Ignore the bit where I was talking about the reformatting of the data, I missed you were multiplying the answers. My formula in post #2 should be ok regardless.

  5. #5
    Registered User
    Join Date
    08-12-2014
    Location
    Istanbul, Turkey
    MS-Off Ver
    2007
    Posts
    4

    Re: Sum every 12 entries on other sheet

    Hello!
    @Ragulduy: Thanks for your reply. I had to start at midday for practical reasons, but will follow up on your suggestion later. Unfortunately the formula didnt work even though I erased all the headings.
    @Glenn: your suggestion was practical as you told me where to insert the formula (many thanks!!). For some reasons Excel 2007 didn't like the formula. Any ideas how to fix it?
    Have a great day!

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sum every 12 entries on other sheet

    Sorry, I was testing it in a copy of the table below and didn't correct the row references.

    Try:
    =SUMIF(HOURLY!$A$1:$A$1000,$A3,OFFSET(HOURLY!$B$1:$B$1000,0,MATCH(DAILY!B$2,HOURLY!$C$2:$AT$2,0)))*0.62
    in B3 and copy down/across.

    You will need to correct some of the headings (e.g. plan/plant)

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Sum every 12 entries on other sheet

    I think I have solved your problem ..
    Try this in B3
    Copy down and across..
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Don't forget to click *
    Attached Files Attached Files

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum every 12 entries on other sheet

    Seeing that all your column Headers on the Hourly worksheet match the column headers on the Daily worksheet, something simple like this might do what you require. Enter in B3 and copy down and across. If you need more than 1000 rows change the 1000 to whatever you need.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Registered User
    Join Date
    08-12-2014
    Location
    Istanbul, Turkey
    MS-Off Ver
    2007
    Posts
    4

    Re: Sum every 12 entries on other sheet

    Many thanks for the astute feedback!

  10. #10
    Registered User
    Join Date
    08-12-2014
    Location
    Istanbul, Turkey
    MS-Off Ver
    2007
    Posts
    4

    Re: Sum every 12 entries on other sheet

    Heartfelt thanks to all contributors! After doing some syntax editing Glenn's suggestion worked. Problem solved!

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Sum every 12 entries on other sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Move Rows from one sheet to another sheet without having duplicate entries
    By vij8y in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-20-2014, 10:59 PM
  2. Replies: 6
    Last Post: 08-14-2012, 10:00 AM
  3. Replies: 0
    Last Post: 07-18-2012, 05:22 PM
  4. How do I extract data from one sheet according to a list of entries in another sheet?
    By LunaLouise in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2011, 01:06 PM
  5. Sheet-to-sheet auto-entries of text
    By Ken Johnson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2006, 03:45 PM

Tags for this Thread

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