+ Reply to Thread
Results 1 to 4 of 4

Combining Rows in a report Query - Not sure if I need a Pivot or VBA or something else

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combining Rows in a report Query - Not sure if I need a Pivot or VBA or something else

    Hi,

    Really hope someone can help with my query.

    I need to create a dynamic report (that changes when the data changes) to reflect a staff member's project allocation over a period of time.

    I've attached an excel spreadsheet showing what I am trying to achieve. I have created what I am trying to achieve manually but I have over 100 staff all on different projects and I don't want to have to manually create the report for each staff member.

    For those who haven't opened the attachment:

    I have multiple rows for each staff member based on the project they are on and I need to combine this into one row showing the person only once and the project they are working on in that month.

    I'm not explaining this well but I've attached a screenshot of what I'm trying to achieve and also a sample excel file.

    Happy to do this via VBA, a pivot or anything you suggest but this has me stumped.

    Thanks in advance

    \1
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Combining Rows in a report Query - Not sure if I need a Pivot or VBA or something else

    Hi, welcome to the forum

    I cant give it to you with multiple entries in 1 cell like you have in J13, but this looks pretty much the same.

    Put this ARRAY formula in A13 and copy down and across...
    =IFERROR(INDEX(A$4:A$8,SMALL(IF($A$4:$A$8="Person 1",ROW($A$4:$A$8)-3),ROWS($A$1:A1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-24-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combining Rows in a report Query - Not sure if I need a Pivot or VBA or something else

    Hi,

    Thanks for the welcome and thanks so much for taking the time to reply.

    Unfortunately that didn't work for me. It just re-created the data I already have.

    I've attached the file again if you had a chance to look at it. If not, thanks for your help to date.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Combining Rows in a report Query - Not sure if I need a Pivot or VBA or something else

    It just re-created the data I already have
    Yes, Partly it does, but if you have multiple names, it will only pull in the name you specify. Try changing a Person 1 to a Person 2

+ 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. Pivot Query Report
    By joogibabu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2013, 05:54 AM
  2. Combining Multiple Pivot Table Report Filters
    By csivell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 02:21 PM
  3. Replies: 0
    Last Post: 11-18-2011, 07:31 AM
  4. Replies: 1
    Last Post: 04-29-2005, 10:06 AM
  5. How to refresh a Excel workbook with pivot & ADO query report in batch mode
    By Karen Middleton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2005, 10:06 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