+ Reply to Thread
Results 1 to 5 of 5

Duplicate a cell with changes

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Duplicate a cell with changes

    Please help

    I have a list of product codes and prices and need to duplicate them with additional info:


    SKU123 £5.15
    SKU124 £6.20
    SKU125 £36.30
    SKU126 £1.10
    ETC

    Want to then take that list and turn it into

    SKU123_1 £5.15
    SKU123_2 £5.15
    SKU123_3 £5.15
    SKU124_1 £6.20
    SKU124_2 £6.20
    SKU124_3 £6.20

    I would like each sku to go from _1 to_15
    I have about 40000 skus in total

    thanks all.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Duplicate a cell with changes

    Is SKU123_1 in one column and £5.15 in the 2nd column?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Duplicate a cell with changes

    Column A has SKU123 Column B has £5.15 ..
    I would then like (on a new sheet ) SKU123_1 £5.15
    SKU123_2 £5.15
    SKU123_3 £5.15
    etc

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Duplicate a cell with changes

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

  5. #5
    Registered User
    Join Date
    06-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Duplicate a cell with changes

    Thank you so much. That worked perfectly.. exactly what I wanted. Thank you. thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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