Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:56:17+00:00 2026-05-30T21:56:17+00:00

I am new to excel formulas and macros. My sheet is show below. id

  • 0

I am new to excel formulas and macros. My sheet is show below.

id   Date      name   hours code    workPackage
1   3/28/2012   Anit    8   N1      1212
2   3/29/2012   Anit    8   N2      1212
3   3/30/2012   Anit    8   N2      1214
4   3/31/2012   Anit    8   N4      1212
5   4/1/2012    Anit    5   N1      1212
6   4/1/2012    Anit    3   N2      1212
7   4/3/2012    Anit    8   N2      1222
8   4/4/2012    Anit    8   N2      1212
9   4/5/2012    Anit    8   A1      1212
10  4/6/2012    Anit    8   A1      1212

I want to accumulate this daily data into a weekly (On fridays) based on Code and workPackage. For a particular Code and workpackage add the Hours for that week. The final output data should be something like this.

1   3/30/2012   Anit    8   N1      1212
2   3/30/2012   Anit    8   N2      1212
3   3/30/2012   Anit    8   N2      1214
4   4/6/2012    Anit    16  A1      1212
5   4/6/2012    Anit    5   N1      1212
6   4/6/2012    Anit    19  N2      1212
7   4/6/2012    Anit    8   N4      1212

If a query could be written by importing this data in a access DB or any other DB for the that, it would also be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:56:18+00:00Added an answer on May 30, 2026 at 9:56 pm

    You can use ADO in Excel. The query would be:

    Select Code, WorkPackage, Max([date]), First([Name]), Sum([Hours])
    From [Sheet1$]
    Group By Code, WorkPackage
    

    Ref: http://support.microsoft.com/kb/257819

    Edit re Comment

    SELECT t.code, t.workPackage, Format([Date],"yyyy-ww") AS WeekNo, 
           Min(t.Date) AS MinOfDate, Max(t.Date) AS MaxOfDate, 
           Min(t.name) AS MinOfname, Sum(t.hours) AS SumOfhours
    FROM [Sheet1$] t
    GROUP BY t.code, t.workPackage, Format([Date],"yyyy-ww");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got unit test with this code: Excel.Application objExcel = new Excel.Application(); Excel.Workbook objWorkbook
I am new to excel macros. I want to copy the selected range to
I used the code described here to update an excel sheet using c#. The
I have made a new Excel 2010 Add-in project, with VS10. When I run
If I do (for example) for (int i=0;i<22;i++) { var app = new Excel.Application();
I'm totally new to Excel VBA. I am using Microsoft 2003 excel. What my
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I am new to VBA in Excel. I'm setting up a simple macro Option
I'm new to Perl and want to plot a chart using Excel. I found
I am using dictionaries in Excel VBA via dict As New Dictionary (and adding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.