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 431347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:57:57+00:00 2026-05-12T19:57:57+00:00

I have a customer who is currently using Excel to do their staff planning.

  • 0

I have a customer who is currently using Excel to do their staff planning. They have many workbooks for different projects and each project contains 1 or more sheets containing the actual staffing data:

Sample staff planning sheet

The customer wants to consolidate all of the data from all of these many sheets and workbooks into a single pivot table. A ‘consolidated’ pivot is not an option because they want to be able to mess with all of the (non-date) fields in the source data. They don’t want to be limited to only ‘Row’ and ‘Column’. My current solution is a macro that consolidates all of the data within a workbook through a fairly convoluted copy and rotate process. I copy a row of ‘meta data’ (everything that’s not a date) first, then I copy / transpose the dates for the meta data row into a single ‘Date’ column. Then I extend the meta data so that the same data is defined for each date.

I have a separate workbook that grabs the consolidated sheet from each workbook and builds a single pivot table from them.

It works, but it’s pretty inefficient, since the total number of tasks / assignments number in the many thousands. In my dreams, I would love to eliminate the consolidation step completely, but I don’t see that happening. A more efficient consolidation approach is about the best I’m hoping for at this point.

If anyone has some ‘outside the box’ ideas, I’m all ears!
The solutions needs to work on windows XP, Office 2002 and 2003.

  • 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-12T19:57:57+00:00Added an answer on May 12, 2026 at 7:57 pm

    I finally found an acceptable solution, if anyone is interested. It’s uses a combination of a Pivot Table and the TextToColumns function. Once I had the approach, turing it into code was pretty simple. The code below does refer to a few conveniance functions I use, such as ‘DeleteSheet’ and ‘LastRowOn’, but you get the idea.

    Sub Foo()
        Dim ws As Worksheet
        For Each ws In Worksheets
            If IsStaffingSheet(ws) Then
                ws.Select
                DeleteSheet ws.Name & " - Exploded"
                TransposeSheet ws
            End If
        Next ws
    
    End Sub
    
    Sub TransposeSheet(ByVal ParentSheet As Worksheet)
        Dim ws As Worksheet
        Dim r As Range
        Dim ref As Variant
        Dim pt As PivotTable
    
        Set r = Range("StaffingStartCell")
        Set r = Range(r, r.SpecialCells(xlLastCell))
    
        ref = Array("'" & ActiveSheet.Name _
                        & "'!" & r.Address(ReferenceStyle:=xlR1C1))
    
        Application.CutCopyMode = False
        ActiveWorkbook.PivotCaches.Add(SourceType:=xlConsolidation, _
                                       SourceData:=ref).CreatePivotTable TableDestination:="", _
            tableName:="PivotTable1", DefaultVersion:=xlPivotTableVersion10
    
        Set ws = ActiveSheet
        Set pt = ws.PivotTableWizard(TableDestination:=ActiveSheet.Cells(3, 1))
        pt.DataPivotField.PivotItems("Count of Value").Position = 1
        pt.PivotFields("Row").PivotItems("").Visible = False
    
        ExplodePivot ParentSheet
        Application.DisplayAlerts = False
        ws.Delete
        Application.DisplayAlerts = True
    
        Set ws = Nothing
    End Sub
    
    
    Sub ExplodePivot(ByVal ParentSheet As Worksheet)
        Dim lastRow As Long
        Dim lastCol As Long
    
        lastRow = LastRowOn(ActiveSheet.Name)
        lastCol = LastColumnBack(ActiveSheet, lastRow)
    
        Cells(lastRow, lastCol).ShowDetail = True
    
        Columns("B:C").Select
        Selection.Cut Destination:=Columns("S:T")
    
        Columns("A:A").Select
        Selection.TextToColumns Destination:=Range("A1"), _
                                DataType:=xlDelimited, _
                                Semicolon:=True
        Selection.ColumnWidth = 12
        ActiveSheet.Name = ParentSheet.Name & " - Exploded"
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a national customer who are currently recruiting dealers by selling each dealer
Our customer would like to know who is online and currently using the custom
We currently have a product that uses Sharepoint and a number different Web Part
I have a customer who is interested in selling his set of tutorial screencasts,
I have customer database who have certain attributes, and a customer type. The collection
I have a customer who asked me to make a website. Now I have
We have customers who, for unassailable reasons, cannot use SQL Server's built-in backup features
I often have customer requesting changing properties, like the version history setting on all
We have a customer that is trying to call our web service written in
I have a Customer class. public class Customer { private string _id; private string

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.