LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 207
Default formatting a text file imported into excel

Gina

I think this process should work for you.

1. Insert two new columns just to the left of your data (I'll assume
it is column A and B).

2. Fill in column A with the numbers 1 through 16,000 (use the ROW
function and convert to values or some other fill functionality)

3. Put =B1 in cell A1 and copy it down your 16,000 rows.

4. Sort by column D. I believe D should be blank except for the rows
that have the item numbers.

5. Delete the formulas in column B for all the rows that have data
NOT item numbers in colum C.

6. Sort the data by column A to get back to the original order.
Column B should have the item number on the item number rows, and be
blank for the rest.

7. Highlight column B

8. Hit F5 (GoTo); then select Special, then select Blanks. You
should now have all the blanks activated.

9.In cell B2 (or the first data row for the first item put in the
formula =B1; then hit Control Enter to put the formula in all the
blank cells at once.

10. Convert column B to values

11. You may want to sort again by column D to get all the item numbers
together and delete them now that you have the data the way you wanted
it.

Good luck

Ken
Norfolk, Va



On Aug 6, 12:51*pm, GinaH wrote:
I would consider my self an intermediate user of excel, and I am just not
sure what the fastest way of formatting my text file would be. *

I imported a text file into excel and now it needs some manipulation. *I
know how to do most, but I am stuck on how to get my item number linked to
the appropriate data. *See below.

Item: 12345 * * * * * * * * * * * * * * * * * *
1015839 * *37315 * * * * * * * * 12.83 * * * * * * *12.33 * * * * * * * *.50

1015668 * *37315 * * * * * * * * 64.17 * * * * * * *61.67 * * * * * * * 2.50

1015661 * *37315 * * * * * * * * 38.50 * * * * * * *37.00 * * * * * * * 1.50

Item: 67890 * * * * * * * * * * * * * * * * * * * *
1000495 * 13732 * * * * * * * * 22.36 * * * * * * *20.86 * * * * * * * 1.50 *

1000639 * 37233 * * * * * * * * 22.36 * * * * * * *20.86 * * * * * * * 1.50 *

1000339 * 37239 * * * * * * * * 22.27- * * * * * * 20.77- * * * * * * *1.50-

1000686 * 37246 * * * * * * * * 22.36 * * * * * * *20.86 * * * * * * * 1.50 *

I need to link the item number to each line in its group so then I can sort
by item and then I can go on from there and use the data and create a pivot
table to get my answers. *I just would like to know if there is something
quicker than cutting a pasting the item number next to each line that doesn't
have the item number? *I have 177 items and 16,000 rows of data, and 5 more
reports like this to run. *I am waiting on our IT to redo the reports itself
so it will include the item number in each line, but who knows when that will
happen. *Please help if you can or give me some advice. *Thanks. *Sorry if I
am not using the correct terminology.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I remove page headings from an imported text file amaries Excel Discussion (Misc queries) 1 December 4th 08 09:10 PM
Formatting Imported Text Kimmerbeth Excel Discussion (Misc queries) 1 December 8th 06 06:51 PM
Single text file imported to multiple worksheets Lynn Bales Excel Worksheet Functions 2 September 21st 06 10:42 PM
imported doc from pdf file, want to seperate text & date in cells Christian Excel Discussion (Misc queries) 2 February 2nd 06 08:13 PM
can I display the file name of the imported text file in another c John-G Excel Discussion (Misc queries) 0 May 13th 05 03:38 PM


All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"