I need to have the data from a text file rearranged to show each product in one row.
I attached the original file and changed the first 2 lines to show what is wanted.
I need to have the data from a text file rearranged to show each product in one row.
I attached the original file and changed the first 2 lines to show what is wanted.
Last edited by Mikeyd1; 04-16-2011 at 12:20 PM.
Can you get your text file to output without the blank rows between your data fields?
Then select each data record set, cut and paste transpose?
Hi Mikeyd1
Looking at your file, it appears that each item has either 7 or 6 rows of data associated with the item. Will this ALWAYS be true?
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
Hello Mikeyd1,
Welcome tot he Forum!
The macro below will convert the data from horizontal to vertical. The converted text is copied over to a second sheet named "Results". The macro was written to start at cell "A13". Your actual file probably starts at a different cell. Change the starting cell marked in bold in the macro below before running this on the real file. Also, be sure to add another worksheet and name it "Results" in your workbook with the original text. There is button on the "Results" worksheet to run the macro.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks