Splitting data in one column into rows

Closed
msd - Feb 17, 2010 at 08:53 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Feb 17, 2010 at 09:25 AM
Hello,
I have a situation where as all of the data from a survey was down loaded into one column. Each block of 10 rows represent one response. I need to have each response be reflected in a row.
This is what I have.

COLUMN A
- <form1>
  <DutyStatus>
<Building>
  <Reason />
  <Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
<form1>
  <DutyStatus>
  <Building>
<Reason />
  <Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
<form1>
  <DutyStatus>
<Building>
<Reason>
<Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
- <form1>

What I need is for to look like
A B C D E G H I
<DutyStatus> <Building> <Reason /> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>   <DutyStatus> <Building> <Reason /> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>   <DutyStatus> <Building> <Reason> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>

Thank You

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Feb 17, 2010 at 09:25 AM
If it is a truly well formed XML document, then if you just open this in excel, it should do what you want it to do. From the sample I can find two issues
1. top level is not defined
2. certain tags have no matching closing tags

I would guess both issues are just because of it being sample.
0