+ Reply to Thread
Results 1 to 7 of 7

How to Add the data from column B to column A on 12,000 lines?

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to Add the data from column B to column A on 12,000 lines?

    I am setting up data for my website and this is what I need to do:

    I have 12,000 lines of product names in column A. Column B contains the product model number. I need to combine each product with the model number and add a a space and dash (-) between the product name and model number. see example below:

    A: Fishfinder
    Life Vest

    B: 1234.01
    L1245K

    Here is how I need it to appear in column A: but for 12,000 lines so cant do it manually.
    A:
    Fishfinder - 1234.01
    Life Vest - L1245K

    Thanks for your help!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: How to Add the data from column B to column A on 12,000 lines?

    Add a Helper Column,say column C.

    In C1 put the formula: =A1&" "&B1 and copy down.

    Then select column C and copy the contents.

    Select cell A1 and Copy | PasteSpecial Values

    Delete column C

    Done.


    Is that what you are looking for?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to Add the data from column B to column A on 12,000 lines?

    Actually, to match his desired results, the formula would be:

    =A1 & " - " & B1
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: How to Add the data from column B to column A on 12,000 lines?

    @JBeaucaire: absolutely right, good spot.

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to Add the data from column B to column A on 12,000 lines?

    Thank You...that's what I needed

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,454

    Re: How to Add the data from column B to column A on 12,000 lines?

    You're welcome.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to Add the data from column B to column A on 12,000 lines?

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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