Converting Table to useful database format

alfordtp

Board Regular
Joined
Oct 3, 2008
Messages
62
I am scraping a lot of data from the interwebs and exporting it to a CSV file. The issue is the data needs to be converted to another format so that it is more useful. As exported, it looks like this:

UnitCharacteristicValue
AppleColorRed
AppleSizeLarge
GrapeColorGreen
GrapeSizeSmall

<tbody>
</tbody>

While this data can work, I would like to convert it to another format, such as:

UnitColorSize
AppleRedLarge
GrapeGreenSmall

<tbody>
</tbody>

Any thoughts on a relatively easy (not resource intensive) way to do this? I have about 60,000 records to apply this to.

Thanks in advance!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi alfordTP,

Are the units, characteristics and values always in the same order?

If so, I guess this will work considering the first data is in column A2:

formula cell D2: =IF(B2="Color";C2;"")
formula cell E2: =IF(B3="Size";C3;"")

Afterwards, filter empty rows and delete them.

Maybe someone has an better way of doing it, but this is easy and will work I guess :)
 
Upvote 0

Forum statistics

Threads
1,221,583
Messages
6,160,638
Members
451,661
Latest member
hamdan17

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