Solved

VBA Macro to clean up report

Posted on 2016-10-26
4
46 Views
Last Modified: 2016-10-26
I have a huge report in Excel that needs to be put in list format.  The Customer ID and name only appears at the beginning of each section.  Does anyone know how to write a macro or code to copy the ID down through each related line in the section?  Attached is a before and after shot of a slice of the report.

Thanks for your help!
Insert-column-Copy-Down.xlsx
0
Comment
Question by:thutchinson
  • 3
4 Comments
 

Author Comment

by:thutchinson
ID: 41860863
Here's the sample file I forgot to attach.  Sorry:)
0
 
LVL 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 41861125
You can do it with a couple of formulas, see column E to H.
Then filter for not empty on column G, and copy the filtered result to After sheet.
Insert-column-Copy-Down.xlsx
1
 

Author Comment

by:thutchinson
ID: 41861271
That's awesome! Thank you so very much Ejgil!
0
 

Author Closing Comment

by:thutchinson
ID: 41861452
I am very pleased.  Thank you so much!
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associateā€¦
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question