I
inetgnu
I have a Table imported from text file containing Records of books.
BUT the fields and data
value is entered as the First and Second Column (ColA, ColB). The
records are separated by 2 empty rows. Some fields are missing for
some records: Some records may miss the 'author' whereas some records
may miss some other fields, say ,'subject' AND 'totalpage'.
The Objective is Making it as a "Normal" Table (Vertical Columns and
Horizontal Rows) by tranforming the record horizontally with Each
field in one column with missing field blanked so that all the field
are
aligned in a column e.g. colA for 'Title', colB for 'Author' with
each individual information of a particular book in s single
horizontal row. (See Figures 1 & 2)
How can we convert varying length Vertically-aligned records (Figure
1) to Horizontal Rows of list (tabular) (Figure 2)
(Figure 1- Three records: varying length- subject & totalpage
missing)
==================================================
(Coulmn A) (Column B)
Title Intro to Cpt
Author James, Page
publisher M-HILL
subject CPT
totalpage 311
isbn 123
(Coulmn A) (Column B) <-- Subject % totalpage missing
Title Basic A/C
Author Ben William
publisher JWS
isbn 721
(Coulmn A) (Column B) <-- Author Missing
Title Modern Phy
publisher P-HALL
subject PHY
totalpage 466
isbn 265
(Figure 2: (Objective) "Normal" table with each detail of a individual
book listed in one row
horizontally)
============================================
Title Author publisher subject
totalpage isbn
---------------- ------------------- -------------
---------- ------------- ------
Intro to Cpt James, Page M-HILL CPT 311
123
Basic A/C Ben William
JWS 721
Modern Phy P-HALL PHY 466
265
Thank in advance
BUT the fields and data
value is entered as the First and Second Column (ColA, ColB). The
records are separated by 2 empty rows. Some fields are missing for
some records: Some records may miss the 'author' whereas some records
may miss some other fields, say ,'subject' AND 'totalpage'.
The Objective is Making it as a "Normal" Table (Vertical Columns and
Horizontal Rows) by tranforming the record horizontally with Each
field in one column with missing field blanked so that all the field
are
aligned in a column e.g. colA for 'Title', colB for 'Author' with
each individual information of a particular book in s single
horizontal row. (See Figures 1 & 2)
How can we convert varying length Vertically-aligned records (Figure
1) to Horizontal Rows of list (tabular) (Figure 2)
(Figure 1- Three records: varying length- subject & totalpage
missing)
==================================================
(Coulmn A) (Column B)
Title Intro to Cpt
Author James, Page
publisher M-HILL
subject CPT
totalpage 311
isbn 123
(Coulmn A) (Column B) <-- Subject % totalpage missing
Title Basic A/C
Author Ben William
publisher JWS
isbn 721
(Coulmn A) (Column B) <-- Author Missing
Title Modern Phy
publisher P-HALL
subject PHY
totalpage 466
isbn 265
(Figure 2: (Objective) "Normal" table with each detail of a individual
book listed in one row
horizontally)
============================================
Title Author publisher subject
totalpage isbn
---------------- ------------------- -------------
---------- ------------- ------
Intro to Cpt James, Page M-HILL CPT 311
123
Basic A/C Ben William
JWS 721
Modern Phy P-HALL PHY 466
265
Thank in advance