+ Reply to Thread
Results 1 to 6 of 6

why doesn't excel want me to combine a range into one cell?

  1. #1
    Registered User
    Join Date
    02-16-2019
    Location
    Bulgaria
    MS-Off Ver
    2010
    Posts
    4

    why doesn't excel want me to combine a range into one cell?

    hello,
    i want to combine a range with a dynamic address and eventually filter out unique values into a list all in one cell.

    for example:
    a1:a5 contain: john, bob, john, lucy, bob
    i want a formula in b1 to extract the values from the range a1:a5, list them with commas and eventually to omit the duplicates - i know this last part is available as an excel function in end results but i want this in an interactive formula since i will be using this for a large number of ranges, so no - combining multiple fields one by one with & will not help

    it is flabbergasting that this is so difficult to achieve and find information about since i doubt this isn't a common necessary function among others as well

    thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: why doesn't excel want me to combine a range into one cell?

    Welcome to the forum! You may be flabbergasted, but you are working with an old tool! This would be easy with Power Query in newer versions of Excel.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-16-2019
    Location
    Bulgaria
    MS-Off Ver
    2010
    Posts
    4

    Re: why doesn't excel want me to combine a range into one cell?

    thanks for the reply, i attatched a file portraying the example and desired results
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: why doesn't excel want me to combine a range into one cell?

    You need Excel 365 with Textjoin or UDF Textjoint

    Please try with Ctrl+Shift+Enter
    =TEXTJOIN(",",,IF(FREQUENCY(MATCH(A3:A10&"",A3:A10&"",),ROW(A1:A10)),A3:A10&"",""))
    Attached Files Attached Files
    Last edited by Bo_Ry; 02-16-2019 at 10:50 AM.

  5. #5
    Registered User
    Join Date
    02-16-2019
    Location
    Bulgaria
    MS-Off Ver
    2010
    Posts
    4

    Re: why doesn't excel want me to combine a range into one cell?

    i am still very baffled, but since there is apparently no simple way to achieve this result i've resorted to the & method with dynamic ranges.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: why doesn't excel want me to combine a range into one cell?

    Perhaps if you express your bafflement to Microsoft ...

+ 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. Replies: 5
    Last Post: 07-02-2018, 12:49 PM
  2. [SOLVED] For Each cell In Range.SpecialCells(xlCellTypeBlanks) doesn't process every cell.
    By TMS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2015, 12:36 PM
  3. VBA Find Dynamic Range based on Cell Borders then combine to one cell
    By hemiceni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2014, 12:38 AM
  4. Replies: 5
    Last Post: 08-01-2014, 05:05 PM
  5. [SOLVED] Combine Cell Contents with a Named Range
    By barnett2000 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 01:40 PM
  6. Reference Cell as range().value doesn't work
    By cmdrdanno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2013, 04:31 PM
  7. Use a function in a chart range so it doesn't include a cell if blank?
    By hokeyplyr48 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2008, 12:32 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