Transposing Product Attributes from Columns to Rows

Axe383

New Member
Joined
Aug 28, 2013
Messages
2
I have a large batch of product information that I am looking to reformat so that it can be imported to our website. Below is an example of the format that it is in now is:

SKU NumberAttributeNameProductAttributeValue
C01Width2.6"
C01Length4.4"
C01TypeDelicate Duty
C01ColorWhite
C06Length13.8"
C06Height5"
C06TypeSwitchable Clenaing
C06ColorYellow
C29Width0.875"
C29Height3.25"
C29Length4.875"
C29TypeScouring
C30Size2-7/8" x 2-7/8"
C30ColorYellow

<colgroup><col><col><col></colgroup><tbody>
</tbody>
....


The way I would wish for it to return is:

SKU NumberColorWidthLengthTypeHeightSize.....
C01White2.6"4.4"Delicate Duty
C06Yellow13.8"Switchable Clenaing5"
C290.875"4.875"Scouring3.25"
C30Yellow2-7/8" x 2-7/8"

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


No big deal right? Well, the problem that I am having is that there are 60,000+ unique "sku numbers" and 3500+ unique "attribute names". Meaning, that when complete, the spreadsheet will have 3500+ columns and 60,000+ Rows. I cannot do a crosstab query in Access because there is over 255 rows. And, attempting to do a vlookup or index/match is almost impossible because it would involve searching and calculating over 210 million cells.

Can anyone help me out with a solution? Thank you.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I'd set up the row and column first (use the remove duplicates feature of Excel 2010 or the advanced filter for earlier versions):


Excel 2010
ABCDEFGHIJKLM
1SKU NumberAttributeNameProductAttributeValueSKU NumberColorWidthLengthTypeHeightSize
2C01Width2.6"C01
3C01Length4.4"C06
4C01TypeDelicate DutyC29
5C01ColorWhiteC30
6C06Length13.8"
7C06Height5"
8C06TypeSwitchable Clenaing
9C06ColorYellow
10C29Width0.875"
11C29Height3.25"
12C29Length4.875"
13C29TypeScouring
14C30Size2-7/8" x 2-7/8"
15C30ColorYellow
Sheet4 (3)


Then paste this formula in H2 and copy across/down:


Excel 2010
ABCDEFGHIJKLMN
1SKU NumberAttributeNameProductAttributeValueSKU NumberColorWidthLengthTypeHeightSize
2C01Width2.6"C01White2.6"4.4"Delicate Duty#N/A#N/A
3C01Length4.4"C06Yellow#N/A13.8"Switchable Clenaing5"#N/A
4C01TypeDelicate DutyC29#N/A0.875"4.875"Scouring3.25"#N/A
5C01ColorWhiteC30Yellow#N/A#N/A#N/A#N/A2-7/8" x 2-7/8"
6C06Length13.8"
7C06Height5"
8C06TypeSwitchable Clenaing
9C06ColorYellow
10C29Width0.875"
11C29Height3.25"
12C29Length4.875"
13C29TypeScouring
14C30Size2-7/8" x 2-7/8"
15C30ColorYellow
Sheet4 (3)
Cell Formulas
RangeFormula
H2{=INDEX($C$2:$C$15,MATCH($G2&H$1,$A$2:$A$15&$B$2:$B$15,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Then highlight the table, press f5(goto), special, formulas, uncheck all except errors, and delete
 
Upvote 0
I just read what you wrote about the data being too large, try this method and tell me what happens. Excel 2010 has 1,048,576 rows by 16,384 columns---over 17 billion cells. The calculation might be slow, but I don't believe it will take forever, especially for a bulk export. Excel 2003's 65k something row limit is insufficient unless you can work around it.
 
Upvote 0
Hi,

Thanks for your response. I've tried this technique before. It works well with less data, but when I try to do all of the 60,000 skus and 3500 attributes, Excel "runs out of resources" and the file cannot finish. I don't know if there is some way that I could work around that
 
Upvote 0
Yes all I can think of is splitting the data into smaller groups and using the lookup formula. Or append smaller Access crosstab queries to a table. I didn't know the Access version of SQL or Excel pivot tables printed summaries like this with text that can't be calculated, it would be interesting to see how.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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