+ Reply to Thread
Results 1 to 7 of 7

Help request to concatenate the columns in require format

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Help request to concatenate the columns in require format

    Hi friends,

    There are 5 columns from 'S:W' namely
    City, Block, District, State, Country. I want to concatenate it in column 'X' as follows:

    1 line: City, 'Value from "Support" sheet range U6' Block,
    2 line: 'Value from "Support" sheet range U7', District, State
    3 line: Country

    in a single cell. The values from "Support" sheet are in local language which can not be written in vba window so I have retrieve it from "Support" sheet.

    Any help will be highly appreciated.

    Thanking you in anticipation.
    Attached Files Attached Files
    Last edited by mso3; 10-20-2016 at 12:24 PM.
    Sincerely,

    mso3

  2. #2
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help request to concatenate the columns in require format

    Sorry! The code is as follows:
    I'm not getting require output.

    Please Login or Register  to view this content.
    Thank you.

  3. #3
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Help request to concatenate the columns in require format

    Try this macro in a regular module and run it from there. Before you run the macro, remove the hyphens ( - ) in columns S:U so that those cells are blank. Also, remove the change event macro in the worksheet code module.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help request to concatenate the columns in require format

    Thank you.

    No, it's not as per my requirement. If there is no data range 'S:W' then the user put a dash sign as shown in attached sample workbook.
    I want to replace those dash sign to "" in column 'X'
    The values 'Bl.' and 'Dis.' are store in "Support" sheet which are not in English so I place it there. These are inn local language which cannot be written in vba code window. I want to retrieve it from there only. The column titles are also in local language in my original workbook so I used the sheet event code which didn't require the column title in code.
    I need a sheet event code to get the output automatically after entering the value in range 'S:W'.
    Could you please suggest me an amendment in the code posted in post2 or similar sheet event code?

    Thanking you.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Help request to concatenate the columns in require format

    Give this a try:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Help request to concatenate the columns in require format

    Hello Mumps1,

    Excellent! Perfect, now it's working fine as per requirement.
    I appreciate and thank you for the excellent challenging solution.

    Have a nice day.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Help request to concatenate the columns in require format

    My pleasure.

+ 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] Assistance require to add column 'M' in concatenate
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2016, 04:36 AM
  2. [SOLVED] Amendment require to use chr function in concatenate
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2016, 10:00 PM
  3. [SOLVED] Help request to concatenate
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2015, 10:23 PM
  4. Concatenate Long String Help Request
    By dbsbender in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-22-2014, 01:57 PM
  5. Replies: 1
    Last Post: 01-13-2014, 04:21 AM
  6. [SOLVED] Require Help - Require Formula for Multiple values in both columns
    By krodge in forum Excel General
    Replies: 6
    Last Post: 01-13-2012, 03:42 AM
  7. [SOLVED] How do I concatenate two columns when one is in date format?
    By LauraL in forum Excel General
    Replies: 3
    Last Post: 08-29-2005, 12:05 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