Results 1 to 23 of 23

Excel Formatting & Capabilities Question

Threaded View

  1. #21
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Excel Formatting & Capabilities Question

    Hi jindon,
    Quote Originally Posted by jindon View Post
    Here's my interpretation of your problem.
    ........
    _ OK. The OP’s start point is a very messy list of rows ( stored somewhere. He was not too specific where, but it is probably a text file or similar. May even be an excel file. But that is not important. ) - He gave a typical set of 7 messy rows in Post # 1.
    He wants those to be sorted into a neat list of tidy rows. The final list could be a Comer delimited file. But that is also not important.

    _ The main point of the excessive to get those messy rows sorted into neat ordered tidy rows. Me and jmhuk suggested putting the initial messy rows all in column A , then attempting to place the ordered sections for each row in other columns to the right. Once that was done it would be straight forward to join all those columns back into ordered rows, with the sections separated by Comers or wotever ( whatever ).. The reason why me and jmhuk suggested pasting out to columns initially was so that the OP could then check through and make any necessary corrections manually before the columns would then be joined back to produce ordered rows. We suggested this as we thought it was barely possible to take such a messy list of rows such as the OP had and fully by VBA code get it perfect. I expect if such a thing is humanly possible, it may take someone of your abilities to achieve that. But we expect the nature of the OP’s messiness is such that it is just not possible

    _ Along the way, the OP also produced some simple ordered rows, ( not quite representing the actual data headings he wants, which he also gave in Post # 1 ) . This was done, i think, just to demonstrate a nice “clean” ordered list of rows, as a comparison with his messy list of rows.

    _ I do not quite follow all your code workings, but you appear to be importing this set of ordered rows into am excel File.
    _ Apologise if i am wrong, But I think what you have done has no relevance to the OP’s requirement. But I may have missed something

    Alan

    P.s. I am particularly intrigued as to what this part in your code does:
    .Pattern = "\b\S{1,3} "
    I have only just started looking at Regex stuff and i cannot figure out that line.
    _ could you explain that bit please.
    I think i almost follow most of the other workings in your code.
    Thanks
    Last edited by Doc.AElstein; 01-21-2016 at 08:11 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Put a comma before three digit if comma is missing
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-01-2016, 01:01 PM
  2. Put a comma before three digit if comma is missing
    By sroysroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2015, 12:06 PM
  3. Comma delimited numbers with space after comma
    By Cicada in forum Excel General
    Replies: 5
    Last Post: 04-23-2015, 09:32 AM
  4. [SOLVED] Code to Replace Comma with dot and dot with comma
    By BS Singh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-17-2014, 06:10 PM
  5. Find and remove all text to the left of last comma (including comma) in a cell
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2013, 08:47 AM
  6. [SOLVED] If comma present, then place a character before and after comma (FORMULA)
    By jaimealvarez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:04 PM
  7. replace the comma separator to a dot and dot to a comma at the same time
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2010, 05:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1