+ Reply to Thread
Results 1 to 2 of 2

VBA.array to sum values based on multiple criterion and dates

Hybrid View

  1. #1
    Registered User
    Join Date
    05-19-2011
    Location
    Naklua
    MS-Off Ver
    Excel 2007
    Posts
    9

    Arrow VBA.array to sum values based on multiple criterion and dates

    Hi again,

    I am looking to sum work hours based on a date and job positions.
    What is needed is the sum of the work hours as well as the amount of people who worked that day.
    I have fiddled a bit with the VBA.array to define the job positions, and some sort of looping to get through the rows, but I am not there at all.
    The VBA I have so fare is selecting the cells that needs to be summed, but it is only with respect to the Position Title Name, not the date.

    Attached is an example.
    I would like to Add the data in sheet1 AZ:AZ to sheet2 under the right dates if: Position title name and date is corresponding to the criterion.

    Any help is appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: VBA.array to sum values based on multiple criterion and dates

    If you can arrange your data so all columns are contigous, you can use a pivot table to get what you want. See attached file where I rearrange your data in new sheets.
    Pierre
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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