+ Reply to Thread
Results 1 to 6 of 6

Add multiple cells into one next to the right value?

  1. #1
    Registered User
    Join Date
    06-18-2020
    Location
    Germany
    MS-Off Ver
    Office 2016
    Posts
    3

    Add multiple cells into one next to the right value?

    Hello everyone,

    I have a table like that (with many more entries) and my problem is that I need the format to be like [A has Positions 1,2,3] so A in the left column and all the positions in CSV in the right column.

    I hope this is understandable.. the "| " symbol means different columns for letters and numbers. I donīt know how to paste excel cells here


    User | Positions
    A | 1
    A | 2
    A | 3
    B | 4
    B | 5
    B | 6
    C | 7
    C | 2
    C | 1
    D | 3
    D | 4
    D | 5
    Last edited by amperomaster; 06-18-2020 at 06:24 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    371

    Re: Add multiple cells into one next to the right value?

    Hi amperomaster,
    Instructions on how to upload a sample workbook are in the yellow banner on the top.
    Show a sample of the current data and a sample on what the result should be. A sample file makes it much easier for members to assist.

  3. #3
    Registered User
    Join Date
    06-18-2020
    Location
    Germany
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Add multiple cells into one next to the right value?

    Attached a sample
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    371

    Re: Add multiple cells into one next to the right value?

    Hi amperomaster,
    Please see the attached file.
    A User Defined Function (UDF) which should do the trick for you.
    The syntax of the formula is: (Lookup value, Lookup range, Range with values to return)

    Let me know how you go with this.
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  5. #5
    Registered User
    Join Date
    06-18-2020
    Location
    Germany
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Add multiple cells into one next to the right value?

    This looks awesome thanks a lot. I will read up on that function

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    371

    Re: Add multiple cells into one next to the right value?

    Hi amperomaster,
    You can't really read up on that function as it is user defined, basically a custom formula written for a specific task. But you can read up on UDFs in general and BVA coding.

    If the above has answered your query, please mark it as SOLVED.

+ 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] Worksheet_change event on multiple target cells (if copy paste multiple cells)
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-30-2020, 04:10 PM
  2. Replies: 5
    Last Post: 11-04-2019, 11:29 AM
  3. Replies: 14
    Last Post: 04-18-2017, 07:07 PM
  4. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  5. [SOLVED] Conditional formatting multiple cells based on multiple cells
    By jhuvba in forum Excel General
    Replies: 2
    Last Post: 05-18-2015, 12:19 PM
  6. Capturing Data from multiple cells to multiple tables and cells on specific dates
    By zero_eclipse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 08:38 AM
  7. Replies: 0
    Last Post: 07-10-2006, 04:34 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