+ Reply to Thread
Results 1 to 9 of 9

CSV Formatting errors

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    55

    CSV Formatting errors

    Good Afternoon All,

    I have attached a sample of a spreadsheet which is generated online and then emailed to us in csv format.

    In Column C is the account code, but if you look in column R (line 6) the next invoice for this account is showing there where it should be shown underneath the one in Column C.

    Is there a way i can place this data where it should be in column c via a macros?

    On Row 26 there are lots of data spread along this line so all the customers invoices show together?
    Attached Files Attached Files
    Last edited by Roger50046; 10-30-2020 at 07:44 AM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: CSV Formatting errors

    Give this macro a try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    55
    Quote Originally Posted by maniacb View Post
    Give this macro a try:

    Please Login or Register  to view this content.
    I will give this a go tomorrow thanks maniacb

  4. #4
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    55

    Re: CSV Formatting errors

    Hi Maniacb,

    Please see the attached spreadsheet SAMPLE_2 after execution of the macros, as you can see all align but the comments must also align with the line on which the invoice is sat.

    Can this be added into your macro that they all sit in column P aligned please?
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: CSV Formatting errors

    can you show an end result example? I don't see what comment applies to what line?

  6. #6
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    55

    Re: CSV Formatting errors

    Hi Maniacb

    I have attached and highlighted where text should be located.

    Many thanks
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: CSV Formatting errors

    I don't see how we can identify the string to then place it where you have highlighted. It would help if you can explain why a certain cell needs to be moved to certain place. I hope my question clear.

  8. #8
    Registered User
    Join Date
    02-02-2016
    Location
    Worcester,UK
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    55

    Re: CSV Formatting errors

    Hi Maniacb,

    I am going to put this one to solved as the macros worked, and all i have to do is some filtering afterwards

  9. #9
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: CSV Formatting errors

    If that takes care of your original question, please select*Thread Tools*from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. hide #DIV/0 errors with conditional formatting
    By hwishman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2017, 02:21 PM
  2. [SOLVED] Time Calculation errors - mostly for h:mm:ss formatting
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2015, 02:28 PM
  3. [SOLVED] Date formatting in VBA WinXP / Win 7 errors
    By danmarson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 06:11 AM
  4. Conditional Formatting Logic Errors
    By traftacana in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-04-2013, 02:02 PM
  5. Conditional Formatting and Errors
    By Jonathan78 in forum Excel General
    Replies: 5
    Last Post: 05-29-2010, 01:40 PM
  6. Conditional Formatting w/ errors
    By nesthead98 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2009, 03:56 PM
  7. Conditional Formatting for errors
    By Zyphon in forum Excel General
    Replies: 3
    Last Post: 09-25-2007, 05:59 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