+ Reply to Thread
Results 1 to 4 of 4

Concatenate based on criteria

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    256

    Concatenate based on criteria

    In column A i have numbers which indicates how many columns should be concantenate.

    For ex:
    If A = 3 (it will concantenate B, C and D) or
    If A = 5 (it will concantenate B, C, D, E and F)


    I need it conditionally because I have 50 columns to concatenate and I do not want to be like this (ex: 5100331559,5100331554,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,) when there is only two columns to concantenate

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Concatenate based on criteria

    Maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Concatenate based on criteria

    Or, maybe better depending on what version of Excel you are using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,422

    Re: Concatenate based on criteria

    Thanks for the rep.

+ 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 in different way based on criteria
    By samba_ravi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-29-2019, 08:25 AM
  2. Concatenate range based on Criteria
    By erice in forum Excel General
    Replies: 5
    Last Post: 01-12-2019, 09:24 PM
  3. [SOLVED] Concatenate based on one criteria
    By tkbuc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-28-2017, 08:24 AM
  4. Concatenate based on criteria
    By jonagpa in forum Excel General
    Replies: 10
    Last Post: 01-08-2016, 04:38 PM
  5. Concatenate Based on the Criteria
    By nawas in forum Excel General
    Replies: 1
    Last Post: 08-06-2015, 12:39 PM
  6. [SOLVED] Concatenate based upon criteria
    By ed_han in forum Excel General
    Replies: 8
    Last Post: 04-08-2015, 10:02 AM
  7. Concatenate a range based on Criteria
    By nuruedriss in forum Excel General
    Replies: 1
    Last Post: 11-06-2013, 10:32 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