/ Published in: Visual Basic
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`
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