ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   re-organising a table of data (https://www.excelbanter.com/excel-programming/318902-re-organising-table-data.html)

Tim[_39_]

re-organising a table of data
 
Can anyone help me generate code to automatically transfer this: -

MATERIAL Storage Orange Apple
flour Ambient x x
Water Variable x x
Yeast Refrigerated x x
Salt Variable x x
fats Ambient x
Vinegar Ambient x
Cereals Ambient x
extracts Ambient x


to this (in this case for the 'Apple' column): -

Ambient Refrigerated Variable
===== ======== ======
Flour Yeast Water
Vinegar Salt

ie, on a different sheet, the different storage states become header rows
and only the materials with 'x's in the apple column are listed below the
appropriate column. i can achieve this in a pivot table, so maybe that
should be part of the solution (it all forms part of an automated package)?

thanks for any help,

tim



Tim[_39_]

re-organising a table of data
 
sorry - my first table didn't look like a table - hopefully this is more
clear...

MATERIAL Storage Orange Apple
flour Ambient x x
Water Variable x x
Yeast Refrigerated x x
Salt Variable x x
fats Ambient x
Vinegar Ambient x
Cereals Ambient x
extracts Ambient x




"Tim" wrote in message
...
Can anyone help me generate code to automatically transfer this: -

MATERIAL Storage Orange Apple
flour Ambient x x
Water Variable x x
Yeast Refrigerated x x
Salt Variable x x
fats Ambient x
Vinegar Ambient x
Cereals Ambient x
extracts Ambient x


to this (in this case for the 'Apple' column): -

Ambient Refrigerated Variable
===== ======== ======
Flour Yeast Water
Vinegar Salt

ie, on a different sheet, the different storage states become header rows
and only the materials with 'x's in the apple column are listed below the
appropriate column. i can achieve this in a pivot table, so maybe that
should be part of the solution (it all forms part of an automated

package)?

thanks for any help,

tim






All times are GMT +1. The time now is 06:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com