Consolidating Columns

Status
Not open for further replies.

Dastnai

New Member
Joined
Oct 26, 2018
Messages
45
Hello Everyone,

Does anyone know of a way to turn multiple Columns into one column. For example, I am looking to have one column with 20/40, 30/50, 40/70 and 100M. Then the other columns will contain Avg LT, Replenish LT etc. Please note this is actually 95 total columns with multiple formulas.




Current:
[TABLE="width: 1503"]
<colgroup><col><col><col><col span="12"></colgroup><tbody>[TR]
[TD]BP#[/TD]
[TD]Site[/TD]
[TD]Basin[/TD]
[TD]20/40 Max[/TD]
[TD]30/50 Max[/TD]
[TD]40/70 Max[/TD]
[TD]100M Max[/TD]
[TD]20/40 Min[/TD]
[TD]30/50 Min[/TD]
[TD]40/70 Min[/TD]
[TD]100M Min[/TD]
[TD]20/40 Inv[/TD]
[TD]30/50 Inv[/TD]
[TD]40/70 Inv[/TD]
[TD]100M Inv[/TD]
[/TR]
[TR]
[TD]9701[/TD]
[TD]CIG-Von Ormy[/TD]
[TD]EAG[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]9704[/TD]
[TD]CIG-Loving[/TD]
[TD]PRM[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]7[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]9705[/TD]
[TD]CIG-Lubbock[/TD]
[TD]PRM[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD]22[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]19[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]9708[/TD]
[TD]Granite Peak-Rock Springs[/TD]
[TD]NIO[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]17[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]9711[/TD]
[TD]Equalizer-Victoria[/TD]
[TD]EAG[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]30[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]9713[/TD]
[TD]Maalt-Enid[/TD]
[TD]MID[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]15[/TD]
[TD]3[/TD]
[TD]17[/TD]
[TD]15[/TD]
[TD]18[/TD]
[TD]13[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]


Desired outcome:


[TABLE="width: 947"]
<colgroup><col><col span="2"><col span="3"><col><col></colgroup><tbody>[TR]
[TD]BP#[/TD]
[TD]Site[/TD]
[TD]Basin[/TD]
[TD]Grade[/TD]
[TD]Max[/TD]
[TD]Min[/TD]
[TD]Inv[/TD]
[TD]ROP[/TD]
[/TR]
[TR]
[TD]9701[/TD]
[TD]CIG-Von Ormy[/TD]
[TD]EAG[/TD]
[TD]20/40[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]9701[/TD]
[TD]CIG-Von Ormy[/TD]
[TD]EAG[/TD]
[TD]30/50[/TD]
[TD]17889[/TD]
[TD]0[/TD]
[TD]7[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]9701[/TD]
[TD]CIG-Von Ormy[/TD]
[TD]EAG[/TD]
[TD]40/70[/TD]
[TD]14019[/TD]
[TD]1095[/TD]
[TD]10206[/TD]
[TD]2519[/TD]
[/TR]
[TR]
[TD]9701[/TD]
[TD]CIG-Von Ormy[/TD]
[TD]EAG[/TD]
[TD]100M[/TD]
[TD]2930[/TD]
[TD]0[/TD]
[TD]11163[/TD]
[TD]0
[/TD]
[/TR]
</tbody>[/TABLE]
.
.
.
.
.
.
.
.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Status
Not open for further replies.

Forum statistics

Threads
1,224,747
Messages
6,180,708
Members
452,994
Latest member
Janick

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