+ Reply to Thread
Results 1 to 8 of 8

Two columns data in single column conditionally

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Two columns data in single column conditionally

    Dear all, I am having data in two columns (A & B ). Now I want to get the data in the single column(column C) . Here column A(Name) & Column B(Mobile No). it is something like below.
    Here is my input data
    Please Login or Register  to view this content.
    i want to get output results like below in the column C
    Please Login or Register  to view this content.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Two columns data in single column conditionally

    Try :-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Two columns data in single column conditionally

    Hi Mick, You did excellent job for me. It works perfectly, thanks for your nice job .

  4. #4
    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: Two columns data in single column conditionally

    Hi,

    One non macro way (or indeed with a macro if you get the macro to perform these steps)

    1. Copy column B immediately under column A
    2. In C1 enter the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down
    3. In C7 enter the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy down to C12
    4. Sort A:C using column C as the key
    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.

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Two columns data in single column conditionally

    Hi Richard , thanks for formula solution..

  6. #6
    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
    48,538

    Re: Two columns data in single column conditionally

    Just out of interest, another VBA option:

    Please Login or Register  to view this content.


    Regards, TMS
    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


  7. #7
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    640

    Re: Two columns data in single column conditionally

    Hi TMS, Excellent job , Thanks for your support.

  8. #8
    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
    48,538

    Re: Two columns data in single column conditionally

    You're welcome. 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. pulling a 3 columns of data into one single column
    By HeikEve in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2013, 08:22 PM
  2. Replies: 2
    Last Post: 03-07-2013, 02:16 PM
  3. single data column into multiple columns
    By ifsmithy in forum Excel General
    Replies: 5
    Last Post: 02-08-2012, 12:38 AM
  4. How to combine data in a single column from three columns
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-18-2011, 01:37 AM
  5. multiple columns data append in single column
    By suresh3566 in forum Excel General
    Replies: 3
    Last Post: 06-11-2011, 07:52 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