Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 131
  • 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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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