+ Reply to Thread
Results 1 to 5 of 5

Concatenate two columns

  1. #1
    Forum Contributor
    Join Date
    09-11-2008
    Location
    uk
    MS-Off Ver
    2010; 2016
    Posts
    390

    Concatenate two columns

    Need your help again chaps!!

    I have a spreadsheet with 2 columns of names and wish to pair them together.

    However, the pairing must be the 'lowest cell number' person in column A (usually in cell a2 but not always!) with the 'highest' person in column B eg. B200+. Both columns can be of variable length.

    As the columns are not always of the same length, there will be some instances where there cannot be a 'full pairing' and I would like that to be displayed as P.needed / whatever or Whatever / P needed depending on which column is largest.

    I've attached a demo if my mumblings are a bit unclear!
    I cant seem to find anything on the site which can do this!

    Many thanks for looking.
    Attached Files Attached Files
    Last edited by skyping; 09-08-2010 at 06:51 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Concatenate two columns with a twist! (highest to lowest)

    If we can assume no blanks are interspersed amongst the names then using your sample one approach might be:

    Please Login or Register  to view this content.

  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 two columns with a twist! (highest to lowest)

    Hi,

    See the attached. I've added three helper cells in G1:I1

    HTH
    Attached Files Attached Files
    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
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Concatenate two columns with a twist! (highest to lowest)

    =concatenate(proper($a2);" / ";proper(offset($b$1;2+counta($b:$b)-row();0)))
    Last edited by snb; 09-07-2010 at 07:20 AM.

  5. #5
    Forum Contributor
    Join Date
    09-11-2008
    Location
    uk
    MS-Off Ver
    2010; 2016
    Posts
    390

    Re: Concatenate two columns with a twist! (highest to lowest)

    Wow!!

    Thanks for all the suggestions guys....awesome as always!

    I think I'm going to go with DonkeyOte equations, as it eliminates any #refs and #values errors, whilst including my initial equation.

    Thanks to all!!

    SOLVED

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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