Look up all occurences and merge results (consolidate)


/ Published in: Visual Basic
Save to your folder(s)

Say you've got data combined in such a way that there is a repeated row header, but all the data is in different rows. If you were to consolidate all the rows down to one, only taking valid values (discarding blanks), you'd have one header row with all the data. This function does that for you.

Ex:
`StudentID,TestScore1, TestScore2,TestScore3
1,100,,
1,,98,
1,,,97`

Becomes:
`StudentID,TestScore1, TestScore2,TestScore3
1,100,98,97`

URL: http://www.ozgrid.com/forum/showthread.php?t=114520

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.