Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50262

Convert list to multiple columns conditionally

$
0
0
Hi,

I have a list of data entities and its attributes. I would like to create multiple columns based on the type of row. The row has unique identifiers to populate the columns. e.g. "Entity Name :", column name followed by ":". In case of column for definition there are multiple rows in the list it will be nice if they could be concatenated, but I am not making that as a requirement. You may skip the line that does not have identifier. I am looking for a list that will have the following columns:

Entity Name : Entity Definition : Column Name : Column Data Type : Column Is FK : Column Is PK : Column Null Option : Table Name : Attribute Name : Attribute Definition :


The list looks like this:


3 Entity Name : Account
4 Table Name : T_ACNT
5 Entity Definition : Anchor point to support relationships between the asset holding or monetary account entities and the other core
6 entities. Also used to uniquely identify an instance of asset holding or monetary account entities within multiple
7 versions.
8 Attribute Name : Account Identifier
9 Attribute Definition : Any value without business meaning that uniquely distinguishes each occurrence of this entity.
10 Column Name : ACNT_ID
11 Column Data Type : INTEGER
12 Column Null Option : Not Null
13 Column Is PK : Yes
14 Column Is FK : No
15 Attribute Name : Account Type Identifier
16 Attribute Definition : Type Identifier records the system generated identifier that classifies the type as a mutually exclusive data item
17 from allother possible data items.
18 Column Name : ACNT_TYP_ID
19 Column Data Type : INTEGER
20 Column Null Option : Null
21 Column Is PK : No
22 Column Is FK : Yes
..................
...................
..................
62 Entity Name : Account Agreement Relationship
63 Table Name : T_ACNT_AGRMNT_RLTNSHP
64 Entity Definition : A relationship between an occurrence of account and an occurrence of agreement.
65 Attribute Name : Account Agreement Relationship Identifier
66 Attribute Definition : Any value without business meaning that uniquely distinguishes each occurrence of this entity.
67 Column Name : ACNT_AGRMNT_RLTNSHP_ID
68 Column Data Type : INTEGER
69 Column Null Option : Not Null
70 Column Is PK : Yes
71 Column Is FK : No
72 Attribute Name : Account Identifier
73 Attribute Definition : Any value without business meaning that uniquely distinguishes each occurrence of this entity.
74 Column Name : ACNT_ID
75 Column Data Type : INTEGER
76 Column Null Option : Null
77 Column Is PK : No
78 Column Is FK : Yes
79 Attribute Name : Agreement Identifier
80 Attribute Definition : Agreement Identifier records the system generated value without business meaning that uniquely distinguishes
81 each occurrence of this entity independently of its history.
82 Req ID: D-15-001; D-15-002; D-15-003; D-15-004; D-15-005; D-19-023
83 Measure:
84 Column Name : AGRMNT_ID
85 Column Data Type : INTEGER
86 Column Null Option : Null
87 Column Is PK : No

Thanks, I will appreciate a quick response.

Mukund

Viewing all articles
Browse latest Browse all 50262

Trending Articles