Greetings,
I'm exporting data from a Rational database application into an Excel 2010 spreadsheet. I then create a pivot table to display the data as shown in the Data Source example (row 4) shown below. In cells D4 thru F4, I have a single row with multiple entries that are separately by what appears to be the ALT+ENTER character.
The real output I need shown in the Desired Output example (rows 8 thru 13) below. I'd like to have a macro that will parse all of the combined cells into rows with single values. I would also like to have the macro ignore the first header row of the spreadsheet, then perform its actions on how ever many rows are in the spreadsheet, stopping when it reached the end of populated rows.
Can someone please provide me with a simple macro to do this?
Thanks in advance.
Paul
Excel 2010
<TBODY>
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #bfbfbf"]Class
[/TD]
[TD="bgcolor: #bfbfbf"]Size
[/TD]
[TD="bgcolor: #bfbfbf"]Color
[/TD]
[TD="bgcolor: #bfbfbf"]Part Number
[/TD]
[TD="bgcolor: #bfbfbf"]Material
[/TD]
[TD="bgcolor: #bfbfbf"]Hardware
[/TD]
[TD="bgcolor: #bfbfbf"]Text
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #bfbfbf"]Class
[/TD]
[TD="bgcolor: #bfbfbf"]Size
[/TD]
[TD="bgcolor: #bfbfbf"]Color
[/TD]
[TD="bgcolor: #bfbfbf"]Part Number
[/TD]
[TD="bgcolor: #bfbfbf"]Material
[/TD]
[TD="bgcolor: #bfbfbf"]Hardware
[/TD]
[TD="bgcolor: #bfbfbf"]Text
[/TD]
</TBODY>
I'm exporting data from a Rational database application into an Excel 2010 spreadsheet. I then create a pivot table to display the data as shown in the Data Source example (row 4) shown below. In cells D4 thru F4, I have a single row with multiple entries that are separately by what appears to be the ALT+ENTER character.
The real output I need shown in the Desired Output example (rows 8 thru 13) below. I'd like to have a macro that will parse all of the combined cells into rows with single values. I would also like to have the macro ignore the first header row of the spreadsheet, then perform its actions on how ever many rows are in the spreadsheet, stopping when it reached the end of populated rows.
Can someone please provide me with a simple macro to do this?
Thanks in advance.
Paul
Excel 2010
A | B | C | D | E | F | G | |
---|---|---|---|---|---|---|---|
2 | Data Source | ||||||
3 | |||||||
4 | Luggage | Large | Brown | ABC-XYZ-29 ABC-XYZ-494 ABC-XYZ-1700 ABC-XYZ-1701 ABC-XYZ-1703 ABC-XYZ-1704 | Vinyl Suede Leather Leather Leather Leather | Brass Gold Silver Silver Silver Silver | Lorem Ipsum is simply dummy text. |
5 | |||||||
6 | Desired Output | ||||||
7 | |||||||
8 | Luggage | Large | Brown | ABC-XYZ-29 | Vinyl | Brass | Lorem Ipsum is simply dummy text. |
9 | Luggage | Large | Brown | ABC-XYZ-494 | Suede | Gold | Lorem Ipsum is simply dummy text. |
10 | Luggage | Large | Brown | ABC-XYZ-1700 | Leather | Silver | Lorem Ipsum is simply dummy text. |
11 | Luggage | Large | Brown | ABC-XYZ-1701 | Leather | Silver | Lorem Ipsum is simply dummy text. |
12 | Luggage | Large | Brown | ABC-XYZ-1703 | Leather | Silver | Lorem Ipsum is simply dummy text. |
13 | Luggage | Large | Brown | ABC-XYZ-1704 | Leather | Silver | Lorem Ipsum is simply dummy text. |
<TBODY>
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #bfbfbf"]Class
[/TD]
[TD="bgcolor: #bfbfbf"]Size
[/TD]
[TD="bgcolor: #bfbfbf"]Color
[/TD]
[TD="bgcolor: #bfbfbf"]Part Number
[/TD]
[TD="bgcolor: #bfbfbf"]Material
[/TD]
[TD="bgcolor: #bfbfbf"]Hardware
[/TD]
[TD="bgcolor: #bfbfbf"]Text
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #bfbfbf"]Class
[/TD]
[TD="bgcolor: #bfbfbf"]Size
[/TD]
[TD="bgcolor: #bfbfbf"]Color
[/TD]
[TD="bgcolor: #bfbfbf"]Part Number
[/TD]
[TD="bgcolor: #bfbfbf"]Material
[/TD]
[TD="bgcolor: #bfbfbf"]Hardware
[/TD]
[TD="bgcolor: #bfbfbf"]Text
[/TD]
</TBODY>
Sample