I would like to create an excel macro to parse data from this:
name NN
site SA
cell CA
dataA DTACA
dataB DTBCA
dataC DTCCA
dataE DTECA
dataF DTFCA
end #
name NN
site SA
cell CB
dataA DTACB
dataB DTBCB
dataC DTCCB
dataE DTECB
dataF DTFCB
end #
name NN
site SA
cell CC
dataA DTACC
dataB DTBCC
dataF DTFCC
end #
to this:
name site cell dataA dataB dataC dataE dataF
NN SA CA DTACA DTBCA DTCCA DTECA DTFCA
NN SA CB DTACB DTBCB DTCCB DTECB DTFCB
NN SA CC DTACB DTBCB DTFCC
Any help will be much appreciated.
name NN
site SA
cell CA
dataA DTACA
dataB DTBCA
dataC DTCCA
dataE DTECA
dataF DTFCA
end #
name NN
site SA
cell CB
dataA DTACB
dataB DTBCB
dataC DTCCB
dataE DTECB
dataF DTFCB
end #
name NN
site SA
cell CC
dataA DTACC
dataB DTBCC
dataF DTFCC
end #
to this:
name site cell dataA dataB dataC dataE dataF
NN SA CA DTACA DTBCA DTCCA DTECA DTFCA
NN SA CB DTACB DTBCB DTCCB DTECB DTFCB
NN SA CC DTACB DTBCB DTFCC
Any help will be much appreciated.