smartguy

Well-known Member
Joined
Jul 14, 2009
Messages
778
Hello all,

Good day. I have excel file in the below format.

Excel 2013/2016
ABC
4data 1Data 2Data 3
5122
612
72
82
92

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
My data
In need to move data in to consolidation sheet.


Excel 2013/2016
ABC
1data 1Data 2Data 3
2122
3111
41
Consolidation



Final result :


Excel 2013/2016
ABC
1data 1Data 2Data 3
2122
3111
41
5data 1Data 2Data 3
6122
712
82
92
102
Consolidation



Condition :

some times data 1 have data but data 2 & data 2 Dnt have data.

Please help.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about
Code:
Sub Consolidatedata()

   Dim NxtRw As Long
   
   NxtRw = Sheets("Consolidation").Cells.find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Offset(1).Row
   Sheets("My Data").UsedRange.Copy Sheets("Consolidation").Range("A" & NxtRw)
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,267
Members
449,219
Latest member
daynle

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