+ Reply to Thread
Results 1 to 7 of 7

Consolidate data separately from multiple entries

  1. #1
    Registered User
    Join Date
    10-17-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    29

    Consolidate data separately from multiple entries

    I have an excel file that I use to record the numbers of hours spent by tradesman on each job. At the end of every week I have to generate a report that gives me the number of hours spent by a tradesman on each job. In the attached file it can be seen how I am recording the hours. In Columns I to V shows what I am trying to achieve. Is there a VBA code or a formula that can help me to consolidate the hours from each day as shown? I have tried using the Consolidate option in excel but by because I have to do it for all the tradesman it becomes a very long procedure.

    Untitled.jpg


    Thanks a lot
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Consolidate data separately from multiple entries

    In J6 =SUMIF($D$4:$D$18,$I6,$E$4:$E$18) and then copy down. You will have to adjust for the other days to reflect a similar formula.

    See Sumif syntax at

    http://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-17-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    29

    Re: Consolidate data separately from multiple entries

    Thanks for instant reply Alan. Your formula works for sure. However according to this formula I have to select the Job# manually. Because the Job#s will be different all the time I was looking for a solution where excel automatically consolidates it.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Consolidate data separately from multiple entries

    Try this Array Formula. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter.

    In I6
    Please Login or Register  to view this content.
    and then copy across and down.

    For detail, see the attached sheet.

    Edit: Hold for a minute. I am reattaching the sheet.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Consolidate data separately from multiple entries

    There was some error in the range reference. The correct formula would be like this......
    In I6
    Please Login or Register  to view this content.
    and then copy across and down.

    Here is the sheet.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-17-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    29

    Re: Consolidate data separately from multiple entries

    Does the magic. Thanks a lot mate.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Consolidate data separately from multiple entries

    Glad I could help.
    You may also click on * (star) to Add Reputation if the solution provided helped you. This is another way to say 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] Consolidate all data in multiple worksheets of multiple workbooks in one Master file.
    By adil.master in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2014, 09:59 PM
  2. Importing multiple data files to run through excel workbook and save separately
    By Robo25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2013, 12:25 PM
  3. Need formula to consolidate entries from several sheets
    By stan2013 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2013, 07:33 PM
  4. Consolidate multiple entries in a row into average values
    By GalahGirl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2011, 01:01 PM
  5. How to consolidate multiple like entries?
    By dikteren in forum Excel General
    Replies: 2
    Last Post: 10-14-2009, 06:30 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