• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

VBA Macro to clean up report

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
thutchinson
Asked:
thutchinson
  • 3
1 Solution
 
thutchinsonAuthor Commented:
Here's the sample file I forgot to attach.  Sorry:)
0
 
Ejgil HedegaardCommented:
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
 
thutchinsonAuthor Commented:
That's awesome! Thank you so very much Ejgil!
0
 
thutchinsonAuthor Commented:
I am very pleased.  Thank you so much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now