+ Reply to Thread
Results 1 to 5 of 5

copy cell values in one cell based on value of adjacent cells

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    copy cell values in one cell based on value of adjacent cells

    Hi all,
    Need help.
    What I want to achieve:
    those cells have number 1 ( in column E) , adjacent cell values ( In Column D) are copied to G12 in the following format::
    Mark,Lark ( i.e. cell value , cell value, etc)

    is it possible ( with a command button)
    Sample attached
    Many thanks
    Kind regards
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copy cell values in one cell based on value of adjacent cells

    Try the attached.
    Attached Files Attached Files

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,785

    Re: copy cell values in one cell based on value of adjacent cells

    If you move your values in Column E to column C, then you could employ this UDF, which works similarly to Vlookup and separates the values with a comma as you have asked for.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: copy cell values in one cell based on value of adjacent cells

    Hi AB33,
    Perfect solution Sir.
    Thanks a lot.
    I have clicked * to thank you.
    You made my day.
    Kind regards

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: copy cell values in one cell based on value of adjacent cells

    Hi alansidman,
    I have also tried your solution and it works perfect and has a wider scope as well.
    I have clicked* to thank you.
    Kind regards

+ 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. [SOLVED] How to delete adjacent cells values based on one cell?
    By meprad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2013, 09:07 AM
  2. [SOLVED] Copy adjacent cells based on matched cell criteria
    By asdfwqefwe3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2013, 02:26 AM
  3. Replies: 2
    Last Post: 03-03-2012, 12:58 PM
  4. Select and copy cells based on adjacent cell
    By Zaeguzah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2010, 02:42 AM
  5. Format cell based on adjacent cells values
    By the majestic ferny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2005, 02:35 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