Macro to take a table and convert into a Pivot table ready table

easycapital
easycapital used Ask the Experts™
on
Quick support from the experts is needed to create a macro which step 1 & 2 below (this answer the question posted here - a follow up question will be posted now also to deal with another approach to the same problem):

1. takes the table in the attached excel file in sheet "Data". This is the sheet with the input to the Macro. The input table has the date displayed as a report and the challenge here is to create a tabel readable to Pivot Tables.

2. Needing macro to create an output of a table based only on 3 column headers "Project", "Milestone", "Date", see sheet "Macro_Output".
0_Table_Macro.xlsx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Easycapital,
You have 24 hidden columns (B through Y). Will the hidden columns eventually have unneeded data in them?

Author

Commented:
Yes.
This is how the table is set up right now.

Commented:
Easy,
See if the attachment works for you.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Sorry.
I see no attachment.
Commented:
Easy,
Try this.
0_Table_Macro_dgb.xlsm

Author

Commented:
Looks.
Though not sure how it works.
Can I have more than two Projects with same date and milestone?

Commented:
Run it from the VBA window (ALT+F11). In the project window (top left), click on the Modules folder. Double click on basStructureData. At the top right of the VBA window, look for the dropdown list that reads: (Declarations). Click that dropdown arrow and select ConvertTable, then press the F5 key. If this works for you then we can add a button to activate it.

You can have the same date and milestone for multiple projects. Each project just needs to be on its own row.

Author

Commented:
Excellent!
With a menu and everything!

Commented:
Easy,
Button included on the Data sheet.
0_Table_Macro-with-button_dgb.xlsm

Author

Commented:
I accepted the solution because it creates the 3 columns as indicated in my original question above.

though still need to resolve having multiple Projects and milestones with same date how do I get that to work.

This would resolve my following question:
http://www.experts-exchange.com/questions/28748700/Macro-to-create-a-repoart-from-a-table-Excel-2010.html

Format is not a problem is more to find the solution to have multiple answers in same cel..

Commented:
Right, I've commented on the other issue. Let's handle it in that separate thread rather than here.

Author

Commented:
ok

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial