Pivoting Data for value

scharny

New Member
Joined
Sep 19, 2003
Messages
2
I have a worksheet that looks something like this:

Product Fruit Type Size
Product1 Apples Red Delicious L
Product2 Apples Red Delicious M
Product3 Apples Golden S

I am trying to pivot the data to look like this:

Product Classification Detail
Product1 Fruit Apple
Product1 Type Red Delicious
Product1 Size L
Product2 Fruit Apple
Product2 Type Red Delicious
Product2 Size M
Product3 Fruit Apple
Product3 Type Golden
Product3 Size S


Other than a pivot table is there any other way to accomplish this?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Yes, using this query and the Excel ODBC driver...

SELECT List.Product, 'Fruit' , List.Fruit
FROM `Book3`.List List
UNION
SELECT List.Product, 'Type' , List.Type
FROM `Book3`.List List
UNION
SELECT List.Product, 'Size' , List.Size
FROM `Book3`.List List
ORDER BY List.Product
Book3.xls
ABCDEFGHIJK
1ProductFruitTypeSizeProductClassificationDetail
2Product1ApplesRedDeliciousLProduct1FruitApples
3Product2ApplesRedDeliciousMProduct1SizeL
4Product3ApplesGoldenSProduct1TypeRedDelicious
5Product2FruitApples
6Product2SizeM
7Product2TypeRedDelicious
8Product3FruitApples
9Product3SizeS
10Product3TypeGolden
11
12
13
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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