+ Reply to Thread
Results 1 to 10 of 10

CONCATENATE all values in row without numbers in front

  1. #1
    Forum Contributor
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    Office 365 pro
    Posts
    177

    CONCATENATE all values in row without numbers in front

    Hi,
    I want to concatenate all values in one row the following way:
    • All letters will be taken from the first letter onwards, no matter what comes after.
    • Numbers only before the letters are to be ignored not after the letter.
    • Column B should always be linked no matter what is in there.
    • The formula should consider all cells with content in the row
    • A number without any text is to be ignored completey, except it is Column B
    • cells with only one character - no matter if number or letter or other character - should always be ignored

    In the illustration you can see a finished example in column A.
    I have inserted the corresponding table.

    Link.png

    Thanks for your help.
    Attached Files Attached Files
    Last edited by CoSinus; 06-09-2020 at 01:25 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: CONCATENATE all values in row without numbers in front

    why does the 526 make it into your answer and not the 123?

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: CONCATENATE all values in row without numbers in front

    What's the maximum number of values in any one row, an d the maximum number of rows?
    This may well determine whether to use Excel standard functions, or a UDF or macro
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: CONCATENATE all values in row without numbers in front

    In the first row, the 526 comes from column B.
    Column B should always be linked no matter what is in there.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: CONCATENATE all values in row without numbers in front

    So does this mean your second rule
    "Numbers only before the letters are to be ignored not after the letter."

    Should be

    Numbers only, OR numbers before the letters but not after the letter, are to be ignored.

  6. #6
    Forum Contributor
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    Office 365 pro
    Posts
    177

    Re: CONCATENATE all values in row without numbers in front

    A number without any text is to be ignored completey, except it is Column B

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: CONCATENATE all values in row without numbers in front

    ...and what's the answer to #3?

  8. #8
    Forum Contributor
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    Office 365 pro
    Posts
    177

    Re: CONCATENATE all values in row without numbers in front

    The length can vary,
    but if we used a formula 50 colums would be enough.

    The problem with vba could be the lengthof the tables wich can amount to 500 rows.
    This will kill excel.

    Thank you for asking.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: CONCATENATE all values in row without numbers in front

    Writing a formula to handle 50 columns would be impractical.

    There's no reason why 500 rows would 'kill' VBA, even without using a VBA array.

    If you're happy to use VBA then let us know.

  10. #10
    Forum Contributor
    Join Date
    05-24-2020
    Location
    London
    MS-Off Ver
    Office 365 pro
    Posts
    177

    Re: CONCATENATE all values in row without numbers in front

    A VBA is also fine I am grateful for everything.

    I forgot to mention that cells with only one character - no matter if number or letter or other character - should always be ignored.

    Thanks for your support.
    Last edited by CoSinus; 06-09-2020 at 01:26 AM.

+ 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] Concatenate 5 cells into a single But including front zeroes or all zeros, e.i 000
    By AndyJr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-22-2018, 01:22 AM
  2. [SOLVED] Macro to copy numbers as texts by adding an apostrophe in front of the numbers
    By josephteh in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-25-2017, 12:33 AM
  3. Vba convert values to numbers and put currency in front of the values
    By Wither125 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2016, 07:14 PM
  4. Concatenate cell values for duplicate numbers
    By jnowell in forum Excel General
    Replies: 5
    Last Post: 01-04-2016, 06:40 PM
  5. Trying to insert * in front of numbers
    By Terry Smith in forum Excel General
    Replies: 4
    Last Post: 03-24-2012, 03:26 PM
  6. placing numbers in front of existing numbers
    By Nickaru in forum Excel General
    Replies: 2
    Last Post: 08-17-2010, 02:29 PM
  7. Adding 0. in front of numbers
    By WHUMad in forum Excel General
    Replies: 1
    Last Post: 06-06-2007, 05:58 AM

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