Placing Row Titles in Rows Below

lookout08

New Member
Joined
Sep 4, 2019
Messages
9
Good Afternoon All;

I am running into an issue I can't resolve with a data export. The data exports with what I suppose would be called a "Header" row, with the corresponding data in the rows beneath. There is no certain number of rows beneath, and due to the size of the file I can't do this manually. I am attempting to get all of the relevant data in a single row, but no solutions are coming to me. I have placed a crude example below (first post, still learning the example upload).

Current Situation:

Apples
John Smith / 5 Bushels / 7-5-2016

Needed Situation:

Apples/ John Smith / 5 Bushels / 7-5-2016

Anything you can think of would be a huge help; I've hit a complete wall on this one.
 
Ok, how about
Code:
Sub lookout08()
   With Range("B1", Range("B" & Rows.Count).End(xlUp))
      .SpecialCells(xlConstants).Offset(, -1).Insert xlToRight
      .SpecialCells(xlConstants).Offset(, -1).FormulaR1C1 = "=r[-1]c"
      .Offset(, -1).Value = .Offset(, -1).Value
      .SpecialCells(xlBlanks).EntireRow.Delete
   End With
End Sub
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hello Fluff;

Thank you for all of your help so far! Right now I'm getting a 1004 error when I plug that formula in. Is there any other info I can provide that could help?
 
Upvote 0
Which line gives the error & what is the error message?
 
Upvote 0
Nevermind; re-ran the code in a new worksheet and it works like a dream! Thank you so much! I never would have gotten this done!!!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top