J
jgoodell
Hello!
I'm so happy to have found this forum. I have been struggling with the
following problem for some time:
I have a data set with the following column headers:
HN Number
Piece
Reference
The data looks like:
HN_Number Piece Reference
HN0001 Sonata in C K. 279 (189e)
HN0001 Sonata in d K. 342
HN0001 Sonata in Eb K. 365 (453d)
HN0001 Sonata in B K. 323
HN0002 Quartet in D K. 345
HN0002 Sonatas Book I editorial dfd22k
HN0002 Simple Song KV. 4534
etc.
What I would like to do is merge the data so that all rows with the
same HN Number (unique key) are combined into one field called
contents, so the data appears with only 2 fields:
HN_Number
Contents
And the "Contents" field is a combination of the Piece and Reference
fields from above:
HN_Number Contents
HN0001 Sonata in C (K. 279 (189e)), Sonata in d (K. 342),
Sonata in Eb (K. 365 (453d)), etc.
so all the rows for HN0001, for example, are combined into one field
called contents; the Reference field is placed next to the Piece field
for that same row in () and each entry is separated by a COMMA.
Is this possible?
Thanks in advance!
John
I'm so happy to have found this forum. I have been struggling with the
following problem for some time:
I have a data set with the following column headers:
HN Number
Piece
Reference
The data looks like:
HN_Number Piece Reference
HN0001 Sonata in C K. 279 (189e)
HN0001 Sonata in d K. 342
HN0001 Sonata in Eb K. 365 (453d)
HN0001 Sonata in B K. 323
HN0002 Quartet in D K. 345
HN0002 Sonatas Book I editorial dfd22k
HN0002 Simple Song KV. 4534
etc.
What I would like to do is merge the data so that all rows with the
same HN Number (unique key) are combined into one field called
contents, so the data appears with only 2 fields:
HN_Number
Contents
And the "Contents" field is a combination of the Piece and Reference
fields from above:
HN_Number Contents
HN0001 Sonata in C (K. 279 (189e)), Sonata in d (K. 342),
Sonata in Eb (K. 365 (453d)), etc.
so all the rows for HN0001, for example, are combined into one field
called contents; the Reference field is placed next to the Piece field
for that same row in () and each entry is separated by a COMMA.
Is this possible?
Thanks in advance!
John