+ Reply to Thread
Results 1 to 7 of 7

Merge cells of item attributes

  1. #1
    Registered User
    Join Date
    01-12-2017
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    3

    Merge cells of item attributes

    Hi all hope you are well,

    Relatively new to excel but pretty sure I have explored all ways to do this as a standard excel function and some programming is required. I have searched for hours online and cannot find the answer I am looking for so here goes.
    I have a single column of data which contains an item ID then directly below that particular item's technical specifications.
    I need to merge the specifications into one cell, separated by commas and moved into the column beside the relevant item ID.
    For example I have this...
    1.jpg

    and I need it to look like this....
    2.jpg

    I am using Office home and business 2013.

    Any help you guys can offer is greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Merge cells of item attributes

    Welcome to the forum
    Please attach a workbook so that the pattern of the data is properly understood
    Click on "Go Advanced" and then below on "Manage Attachments"

    Is the interior colour of Part No cell always yellow? Technical Spec always green? Is the number of specs always 4?

    Thanks

  3. #3
    Registered User
    Join Date
    01-12-2017
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    3

    Re: Merge cells of item attributes

    Hi Kev,

    Thank you and thanks for the response.
    I have attached a small selection of the data.
    The colours are not always green and yellow but I can make them be.
    Unfortunately the number of specifications is not always constant, they can range from 1 to 10.

    Many thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Merge cells of item attributes

    give this a try as long as Technical Specification will be a Constant

    Please Login or Register  to view this content.
    Last edited by mike7952; 01-13-2017 at 08:51 AM.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Merge cells of item attributes

    Another method (without using of arrays )
    Assumes single continuous column of values starting at A1

    If you want anything explaining, ask away.

    Please Login or Register  to view this content.
    Last edited by kev_; 01-13-2017 at 08:49 AM.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Merge cells of item attributes

    Noticed minor error in one line of code
    here it is again (edit was not working for me today!)
    Run in attached file with {CTRL} + t

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-12-2017
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    3

    Re: Merge cells of item attributes

    Quote Originally Posted by mike7952 View Post
    give this a try as long as Technical Specification will be a Constant

    Please Login or Register  to view this content.



    This works perfectly. Thanks very much.....a great bit of coding.

+ 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. [VBA] How do I change attributes of cells when compare between cells
    By takiyamirosicky07 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2016, 09:24 AM
  2. Replies: 7
    Last Post: 10-23-2014, 11:17 AM
  3. [SOLVED] help me merge two files, menu and item codes
    By jezrp22 in forum Excel General
    Replies: 1
    Last Post: 10-23-2014, 08:28 AM
  4. Protecting XML attributes in excel cells
    By mkendrick in forum Excel General
    Replies: 0
    Last Post: 04-08-2011, 10:49 AM
  5. Merge cells and keep attributes
    By YossiD in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2010, 08:48 AM
  6. Excel 2007 : Controlling shape attributes from cells values
    By koval.andrey in forum Excel General
    Replies: 4
    Last Post: 09-21-2009, 10:01 AM
  7. [SOLVED] Sum Cells based on attributes
    By Budget Programmer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2006, 04:55 PM

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