+ Reply to Thread
Results 1 to 4 of 4

Sorting data in the sheet

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Belgrade
    MS-Off Ver
    MS Office 2016
    Posts
    21

    Sorting data in the sheet

    I'm trying to sort data from online contacts book. Problem is that after importing data, some imputs have two or three rows because of additional phone or telefax number and those rows are written one under another. Other problem is that another column with the address is after import used for both address and workplace name. Looks like this (... are blanks):
    Col1.../ Col2..../ Col3..../
    Name1/ Phone1/ workplace1
    Name2/ Phone1/ Workplace2
    ........./ Phone2/ Address

    And I would like it to be:
    Col1.../ Col2..../ Col3........./ Col4...../ Col5...../
    Name1/ Phone1/ workplace1/.........../.........../
    Name2/ Phone1/ workplace2/ Phone2/ Address/

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Sorting data in the sheet

    Attach a sample workbook so we can better visualize the data. Thanks.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sorting data in the sheet

    some imputs have two or three rows
    Your desired result does not specify the column layout where there are three rows worth of data for a given name.

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Sorting data in the sheet

    Here's a VBA solution.

    Assumes source data is in cols A:C starting at A1

    Execute the "rearrange" macro.

    The re-arranged data starts at E1

    See the attached workbook

    Here's the VBA:

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Sorting data (dates) in one sheet and finding the sorted data in another sheet?
    By Elijah in forum Excel Programming / VBA / Macros
    Replies: 53
    Last Post: 12-28-2018, 09:59 AM
  2. sorting second sheet data base on first sheet?
    By [kinder] in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-17-2018, 12:57 AM
  3. Replies: 0
    Last Post: 01-09-2018, 02:38 PM
  4. Replies: 16
    Last Post: 04-20-2017, 12:18 PM
  5. Replies: 5
    Last Post: 12-30-2014, 12:41 PM
  6. Need help in sorting data in another sheet without selecting the sheet
    By SMILE in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2013, 04:15 AM
  7. Replies: 2
    Last Post: 04-14-2012, 08:19 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