+ Reply to Thread
Results 1 to 6 of 6

Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

  1. #1
    Registered User
    Join Date
    11-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    Hi
    Hoping this is not going to be too difficult. Have tried to Google the question but not actually sure what I am asking for lol.

    I have a huge report which has been sent to us by one of our distributors, which has been formatted by whichever reporting software they use.

    I am able to edit the report to give me all the information I need using a macro but need one last bit.

    In a nutshell, I need the Account Ref and Name to be copied down as a new column for each Stock Code item underneath it until it gets to the next Account Ref. Once copied I would like to remove the original Account Ref and Name cells to leave a standard Excel spreadsheet that can be uploaded to another system.

    I have attached a sample sheet of dummy data (minus a few columns at the end) which should illustrate my problem.

    Any help would be greatly appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    Hi,

    Will the stock code always start with the alphabets QMS ?
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  3. #3
    Registered User
    Join Date
    11-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    As far a I know, yes

  4. #4
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    Hi,

    attached is my solution , hope this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    Thanks xlbiznes
    Will take a look today and let you know if it does what I need

  6. #6
    Registered User
    Join Date
    11-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Copying Customer Details Onto Each Sale Line Until Next Customer is Reached

    Thanks xlbiznes
    Code was brilliant!
    Adapted it slightly to give me exactly what I need for the full completed report and it works beautifully
    Here is the amended code for anyone that might need something similar in the future
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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