Hi Dan
This procedure is a little different then the one I previously described. Since so much of your data is already in seperate columns I think this will be quicker
1) Insert a new column between A and
2) In cell B8 enter this formula: =IF(E8<>"",A4,""
3) In cell C8 enter this formula: =IF(E8<>"",A5,""
4) In cell D8 enter this formula: =IF(E8<>"",A7,""
5) Select cells B8 through D8, and drag the fill handle down to the bottom of your table. The fill handle is the black square in the lower right corner of the selected cells
6) Select columns B through D, Edit>Copy, Edit>Paste_Special>Values. This will replace the formulas with the actual values
7) Delete column
8) Sort on appropriate column to remove all of the empty rows. If you sort on column A, B, or C, the pseudo-blanks ("") will end up at the top of the file so you will need to select those rows and delete them
If you have any problems you can e-mail me the file
Regards
Mark Graesse
(e-mail address removed)
----- Dan B wrote: ----
Mark
Here are answers to your questions
1)Each record starts with the 856 part from my example. It is every 5t
row, or in other words there are 4 rows in between each numbered record
There are roughly 2100 records
2)856 is in cell A4. It is the first part of each record. The next recor
would start at A9, the next at A14 and so on
3)New York is in A5, then the next in A10 and so o
4)DCOMP21 is in A7, then A12, A17......
5)Double is in D8, then D13, D18.....Also, columns E thru K have data tha
is all on the same row which is fine. That is how I need it....so in on
record D8 thru K8 is all OK
6)816.30 is in H8.....part of what I mentioned in #5 abov
7)N
8)A9 is the 1st cell of the second record
So...I need everything in different columns, but on the same row. I coul
email you a sample spreadsheet if that would help clarify
THANK YOU for your help
Da
Mark Graesser said:
Dan
This can be done without too much trouble. I can't really tell how you
table is laid out from your sample. Give me some more detail and I can pu
together a procedure
2) What cell is 856 in? (assuming this is the first record
3) What cell is New York in
4) What cell is DCOMP21 in
5) What cell is Double in
6) What cell is 816.30 in
7) Is there a blank row between each record
8) What is the first cell of the second record
single row off to the right of the original table. Then you will copy thi
down along each record, the easy way to do this is to select the first se
of formulas AND all of the blank cells before the begining of the secon
record, then grab and pull the fill handle to the bottom of the data. Thi
will put the formulas in every "n"th row, instead of every row. Then Cop
and Paste_Special>Values. Finally, delete the original data and sort to ge
rid of the spaces