Closed Thread
Results 1 to 3 of 3

Need to copy header row in group to all rows below header; stop if blank and repeate

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    Augusta, GA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to copy header row in group to all rows below header; stop if blank and repeate

    I have a spreadsheet with multiple groups of data, each with a header row and each group separated by a blank row. I need a macro to copy the header row for each group and paste in column A for each corresponding row below, stop when blank row reached and repeat. See attached file for example. Thanks in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to copy header row in group to all rows below header; stop if blank and repeate

    non VBA solution.

    dutch => a2=ALS(OF(B1="";B2="");"";ALS(LINKS(B1;2)="12";B1;A1))

    english a2=if(or(B1="",B2=""),"",if(left(B1,2)="12",B1,A1))

    and drag down.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need to copy header row in group to all rows below header; stop if blank and repeate

    Thread posted in commercial services forum.

    Thread closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Why does the Sort function stop recognizing Header Rows?
    By Mangus Pyke in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 03:05 PM
  2. Why does the Sort function stop recognizing Header Rows?
    By Frostfire in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Why does the Sort function stop recognizing Header Rows?
    By Mangus Pyke in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  4. Why does the Sort function stop recognizing Header Rows?
    By Frostfire in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Why does the Sort function stop recognizing Header Rows?
    By Frostfire in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-17-2005, 07:05 PM

Tags for this Thread

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