E
Eldraad
What I have happening is this: I am converting a text report to a
excel worksheet (done automatically,). The report USUALLY follows th
same pattern....
78..06..texttexttext.....0.....0.....0
............Sample.............0.....0....0
(if this looks bad it should have 78 06 in the first column
texttexttext in the next column and numbers in several columns afte
that. The row below it should have the first column blank, the
sample lined up under the texttexttext and several columns of number
after that).
BUT, due to the way this report is created at the source (it i
e-mailed to us) we sometimes get the two rows split with other dat
from a page break or header or something, and it looks like this:
78..06..texttexttext.....0.....0.....0
...Statistical Report for 07/28/2004....text.....text......text.....
text......text.....text......text......text.....text....text......text.....
............Sample.............0.....0.....0
What I have been doing prior to finding this error, was running
formula to find the "78 06" then counting 1 row down and 2 columns t
the right to get the data for that dispatch number after the wor
sample. When the extra text shows up, the formula returns the portio
of the text (from these extra rows) that shows up in the expected dat
cell. The formula is as follows"
=offset(a1, Match("78 06", A2:A1900, 0)+1,2)
These extra rows of text can show up at any dispatch number (the "78
06" is a dispatch number and we have hundreds of them)and I would lik
to know how to set up the formula to "skip" the extra text and find th
"Sample" row so I can get the correct data.
In other words, if there are no "extra rows" it will find Sample as i
the formula shown. But if there ARE extra rows it needs to look pas
them to find "Sample" and then the column with the correct data.
Is there a way to do this?
Thank you for your time in reading this message.
Eldraa
excel worksheet (done automatically,). The report USUALLY follows th
same pattern....
78..06..texttexttext.....0.....0.....0
............Sample.............0.....0....0
(if this looks bad it should have 78 06 in the first column
texttexttext in the next column and numbers in several columns afte
that. The row below it should have the first column blank, the
sample lined up under the texttexttext and several columns of number
after that).
BUT, due to the way this report is created at the source (it i
e-mailed to us) we sometimes get the two rows split with other dat
from a page break or header or something, and it looks like this:
78..06..texttexttext.....0.....0.....0
...Statistical Report for 07/28/2004....text.....text......text.....
text......text.....text......text......text.....text....text......text.....
............Sample.............0.....0.....0
What I have been doing prior to finding this error, was running
formula to find the "78 06" then counting 1 row down and 2 columns t
the right to get the data for that dispatch number after the wor
sample. When the extra text shows up, the formula returns the portio
of the text (from these extra rows) that shows up in the expected dat
cell. The formula is as follows"
=offset(a1, Match("78 06", A2:A1900, 0)+1,2)
These extra rows of text can show up at any dispatch number (the "78
06" is a dispatch number and we have hundreds of them)and I would lik
to know how to set up the formula to "skip" the extra text and find th
"Sample" row so I can get the correct data.
In other words, if there are no "extra rows" it will find Sample as i
the formula shown. But if there ARE extra rows it needs to look pas
them to find "Sample" and then the column with the correct data.
Is there a way to do this?
Thank you for your time in reading this message.
Eldraa