Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default XML Column to Multiple Columns

I have to parse an XML file to separate a single column of values in the XML
into multiple columns.

The XML schema provides several columns of which two are significant. A
column with a label for each row in the column and the next column has the
dollar value.

Basically it lays out like:
Column 9 Column 10

Death Benefit 1,000,000
Death Benefit 1,000,100
Death Benefit 1,000,200 and so on for up to 121 rows then
Cash Value 0
Cash Value 30
Cash Value 500 and so on for up to 121 rows then continue
through the rest of the column

What I need to do is parse these into seperate columns on a target workshet
so that I end up with

Column B Column C
Death Benefit Cash Value
1,000,000 0
1,000,100 100
1,000,200 500
and so on for up to 121 rows for each column.

Right now I'm using INDIRECT. The number of years will vary from one file to
the next. I would prefer to pair up the column label with the column value in
each year.

Is there a better way to do this?



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default XML Column to Multiple Columns

I have devided a method using an indirect. formula.

"Dkline" wrote:

I have to parse an XML file to separate a single column of values in the XML
into multiple columns.

The XML schema provides several columns of which two are significant. A
column with a label for each row in the column and the next column has the
dollar value.

Basically it lays out like:
Column 9 Column 10

Death Benefit 1,000,000
Death Benefit 1,000,100
Death Benefit 1,000,200 and so on for up to 121 rows then
Cash Value 0
Cash Value 30
Cash Value 500 and so on for up to 121 rows then continue
through the rest of the column

What I need to do is parse these into seperate columns on a target workshet
so that I end up with

Column B Column C
Death Benefit Cash Value
1,000,000 0
1,000,100 100
1,000,200 500
and so on for up to 121 rows for each column.

Right now I'm using INDIRECT. The number of years will vary from one file to
the next. I would prefer to pair up the column label with the column value in
each year.

Is there a better way to do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column List to Multiple Columns TStirling Excel Worksheet Functions 5 January 8th 08 08:35 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 2 July 31st 06 09:45 PM
Combine multiple columns into two long columns, Repeating rows in first column [email protected] Excel Discussion (Misc queries) 0 July 31st 06 05:07 PM
How do I create multiple columns within one column? Jeanne Excel Discussion (Misc queries) 3 February 27th 06 09:45 PM
text from one column into multiple columns Jeff Brown Excel Discussion (Misc queries) 6 December 22nd 04 10:07 PM


All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"