Rearraging numbers so column c before is column a in next row

Fire7467

New Member
Joined
Jun 24, 2019
Messages
8
Rearranging numbers so column c before is column a in next row but also need it to but the last c row number in the next row if it applies
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 397"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Pipe DTH03528[/TD]
[TD]DJ-0936[/TD]
[TD]Pipe DTH04898[/TD]
[/TR]
[TR]
[TD]Pipe DTH02677[/TD]
[TD]MLA-0435[/TD]
[TD]Pipe DTH03024[/TD]
[/TR]
[TR]
[TD]Pipe DTH05084[/TD]
[TD]DJ-0925[/TD]
[TD]Pipe DTH04298[/TD]
[/TR]
[TR]
[TD]Pipe DTH02033[/TD]
[TD]DJ-0261[/TD]
[TD]Pipe DTH03952[/TD]
[/TR]
[TR]
[TD]Pipe DTH03896[/TD]
[TD]MLA-0434[/TD]
[TD]Pipe DTH03528[/TD]
[/TR]
[TR]
[TD]Pipe DTH04291[/TD]
[TD]DJ-0922[/TD]
[TD]Pipe DTH03348[/TD]
[/TR]
[TR]
[TD]Pipe DTH02130[/TD]
[TD]MLA-0445[/TD]
[TD]Pipe DTH03824[/TD]
[/TR]
[TR]
[TD]Pipe DTH04898[/TD]
[TD]MLA-0433[/TD]
[TD]Pipe DTH03482[/TD]
[/TR]
[TR]
[TD]Pipe DTH04639[/TD]
[TD]MLA-0432[/TD]
[TD]Pipe DTH05084[/TD]
[/TR]
[TR]
[TD]Pipe DTH04292[/TD]
[TD]MLA-0446[/TD]
[TD]Pipe DTH03378[/TD]
[/TR]
[TR]
[TD]Pipe DTH03348[/TD]
[TD]MLA-0430[/TD]
[TD]Pipe DTH02881[/TD]
[/TR]
[TR]
[TD]Pipe DTH04171[/TD]
[TD]DJ-0263[/TD]
[TD]Pipe DTH03795[/TD]
[/TR]
[TR]
[TD]Pipe DTH03824[/TD]
[TD]DJ-0945[/TD]
[TD]Pipe DTH04908[/TD]
[/TR]
[TR]
[TD]Pipe DTH01743[/TD]
[TD]MLA-0183[/TD]
[TD]Pipe DTH04171[/TD]
[/TR]
</tbody>[/TABLE]

[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
This would be a better example
[TABLE="width: 708"]
<colgroup><col><col span="2"><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Pipe DTH03528[/TD]
[TD]DJ-0936[/TD]
[TD="colspan: 2"]Pipe DTH04898[/TD]
[TD]Pipe DTH03528[/TD]
[TD]DJ-0936[/TD]
[TD]Pipe DTH04898[/TD]
[/TR]
[TR]
[TD]Pipe DTH02677[/TD]
[TD]MLA-0435[/TD]
[TD="colspan: 2"]Pipe DTH03024[/TD]
[TD]Pipe DTH04898[/TD]
[TD]MLA-0433[/TD]
[TD]Pipe DTH03482[/TD]
[/TR]
[TR]
[TD]Pipe DTH05084[/TD]
[TD]DJ-0925[/TD]
[TD="colspan: 2"]Pipe DTH04298[/TD]
[TD]Pipe DTH03482[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]Pipe DTH02033[/TD]
[TD]DJ-0261[/TD]
[TD="colspan: 2"]Pipe DTH03952[/TD]
[TD]Pipe DTH05084[/TD]
[TD]DJ-0925[/TD]
[TD]Pipe DTH04298[/TD]
[/TR]
[TR]
[TD]Pipe DTH03896[/TD]
[TD]MLA-0434[/TD]
[TD="colspan: 2"]Pipe DTH03528[/TD]
[TD]Pipe DTH04298[/TD]
[TD]MLA-0431[/TD]
[TD]Pipe DTH04291[/TD]
[/TR]
[TR]
[TD]Pipe DTH04291[/TD]
[TD]DJ-0922[/TD]
[TD="colspan: 2"]Pipe DTH03348[/TD]
[TD]Pipe DTH04291[/TD]
[TD]DJ-0922[/TD]
[TD]Pipe DTH03348[/TD]
[/TR]
[TR]
[TD]Pipe DTH02130[/TD]
[TD]MLA-0445[/TD]
[TD="colspan: 2"]Pipe DTH03824[/TD]
[TD]Pipe DTH03348[/TD]
[TD]MLA-0430[/TD]
[TD]Pipe DTH02881[/TD]
[/TR]
[TR]
[TD]Pipe DTH04898[/TD]
[TD]MLA-0433[/TD]
[TD="colspan: 2"]Pipe DTH03482[/TD]
[TD]Pipe DTH02881[/TD]
[TD]DJ-0931[/TD]
[TD]Pipe DTH03553[/TD]
[/TR]
[TR]
[TD]Pipe DTH04639[/TD]
[TD]MLA-0432[/TD]
[TD="colspan: 2"]Pipe DTH05084[/TD]
[TD]Pipe DTH03553[/TD]
[TD]MLA-0429[/TD]
[TD]Pipe DTH04278[/TD]
[/TR]
[TR]
[TD]Pipe DTH04292[/TD]
[TD]MLA-0446[/TD]
[TD="colspan: 2"]Pipe DTH03378[/TD]
[TD]Pipe DTH04278[/TD]
[TD]DJ-0927[/TD]
[TD]Pipe DTH00645[/TD]
[/TR]
[TR]
[TD]Pipe DTH03348[/TD]
[TD]MLA-0430[/TD]
[TD="colspan: 2"]Pipe DTH02881[/TD]
[TD]Pipe DTH00645[/TD]
[TD]MLA-0428[/TD]
[TD]Pipe DTH04625[/TD]
[/TR]
[TR]
[TD]Pipe DTH04171[/TD]
[TD]DJ-0263[/TD]
[TD="colspan: 2"]Pipe DTH03795[/TD]
[TD]Pipe DTH04625[/TD]
[TD]DJ-0923[/TD]
[TD]Pipe DTH04213[/TD]
[/TR]
[TR]
[TD]Pipe DTH03824[/TD]
[TD]DJ-0945[/TD]
[TD="colspan: 2"]Pipe DTH04908[/TD]
[TD]Pipe DTH04213[/TD]
[TD]MLA-0427[/TD]
[TD]Pipe DTH02870[/TD]
[/TR]
[TR]
[TD]Pipe DTH01743[/TD]
[TD]MLA-0183[/TD]
[TD="colspan: 2"]Pipe DTH04171[/TD]
[TD]Pipe DTH02870[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Pipe DTH00903[/TD]
[TD="align: center"]#N/A[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]#N/A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Pipe DTH02677[/TD]
[TD]MLA-0435[/TD]
[TD]Pipe DTH03024[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Pipe DTH03024[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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