Hello community,
I have a challenge that I am currently unable to overcome:
In one worksheet, I have two columns; one entitled 'TYPE' and one entitled 'PRODUCT CODE'.
Under TYPE, you will either have the word 'ALPHA', 'BETA' or 'OMEGA'.
Under PRODUCT CODE, you could have one of a huge variety of reference codes.
For Example:
TYPE PRODUCT CODE
Alpha 001-234
Alpha SA5216
Omega KLM533
Alpha ZZ22345
Beta 002-333
Beta LLL-Z22
In another worksheet, I need to transpose the PRODUCT CODE column into a row.
Additionally, I only want product codes to appear in the row of transposed data that have the word 'Alpha' under the TYPE column. So for the above example, the transposed row in the second worksheet would look like this:
SA5216 ZZ22345 001-234
One further issue; the worksheet where the original data is found can be filtered by users (so the data could move around, e.g. sort by ascending and descending). However, the worksheet where the PRODCUT CODE column is to be transposed into one row HAS to have this data fixed in alphabetical order (so that when the first worksheet is being filtered, the order of the data in the transposed row found in the second sheet remains fixed).
I have played around by mixing IF and TRANSPOSE functions but I imagine the above is only/best achieved via a macro and I can't write this.
Could somebody pelase advise. You'd be doing me a masssive favour.
Cheers.
T
I have a challenge that I am currently unable to overcome:
In one worksheet, I have two columns; one entitled 'TYPE' and one entitled 'PRODUCT CODE'.
Under TYPE, you will either have the word 'ALPHA', 'BETA' or 'OMEGA'.
Under PRODUCT CODE, you could have one of a huge variety of reference codes.
For Example:
TYPE PRODUCT CODE
Alpha 001-234
Alpha SA5216
Omega KLM533
Alpha ZZ22345
Beta 002-333
Beta LLL-Z22
In another worksheet, I need to transpose the PRODUCT CODE column into a row.
Additionally, I only want product codes to appear in the row of transposed data that have the word 'Alpha' under the TYPE column. So for the above example, the transposed row in the second worksheet would look like this:
SA5216 ZZ22345 001-234
One further issue; the worksheet where the original data is found can be filtered by users (so the data could move around, e.g. sort by ascending and descending). However, the worksheet where the PRODCUT CODE column is to be transposed into one row HAS to have this data fixed in alphabetical order (so that when the first worksheet is being filtered, the order of the data in the transposed row found in the second sheet remains fixed).
I have played around by mixing IF and TRANSPOSE functions but I imagine the above is only/best achieved via a macro and I can't write this.
Could somebody pelase advise. You'd be doing me a masssive favour.
Cheers.
T