+ Reply to Thread
Results 1 to 3 of 3

Sorting One Row that Has Multiple Rows Data

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    Manado
    MS-Off Ver
    Microsoft Office 2016
    Posts
    2

    Sorting One Row that Has Multiple Rows Data

    Hi, sorry for bothering if this question has been asked. But I didn't know the keyword to search, so I'll ask here hoping for solution.
    I have Microsoft Office 2016 and a data like this:
    C 1
    empty 2
    empty 3
    B 4
    empty 5
    empty 6
    A 7
    empty 8
    empty 9

    I want to sort it based on first column BUT the data in second column still intact with the first row group:
    A 7
    empty 8
    empty 9
    B 4
    empty 5
    empty 6
    C 1
    empty 2
    empty 3

    But a sort function only give a simple sort result. It will sort by treating every row is single row:
    A 7
    B 4
    C 1
    empty 2
    empty 3
    empty 5
    empty 6
    empty 8
    empty 9

    Is there any way to sort this kind of data? Thanks.
    Last edited by Thox851441; 05-02-2018 at 12:44 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Sorting One Row that Has Multiple Rows Data

    You could use a temporary column next to your data with a formula like this:

    In C1 : =A1

    In C2: =IF(A2="",C1,A2)

    Copy that formula down as far as you need to. Then you can sort using column C as the sort field, and then delete it afterwords.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-02-2018
    Location
    Manado
    MS-Off Ver
    Microsoft Office 2016
    Posts
    2

    Re: Sorting One Row that Has Multiple Rows Data

    Ah, silly me. I was thinking adding the empty cell with same name of A, B, C and totally forgot that I can make a dummy information in new column :D
    Thank you very much, Sir!

+ 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 from rows (multiple sheets) in columns (one sheet)
    By ANA M in forum Excel General
    Replies: 2
    Last Post: 03-16-2015, 08:54 AM
  2. [SOLVED] SORTING by COLUMN A (NAME) COL B has multiple rows
    By mr_sock in forum Excel General
    Replies: 8
    Last Post: 02-12-2014, 09:57 AM
  3. Sorting blocks of multiple rows.
    By WHATSTHISBUTTONDO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2013, 08:39 PM
  4. Help needed sorting multiple columns/rows of data
    By missyhol in forum Excel General
    Replies: 0
    Last Post: 12-21-2012, 10:47 AM
  5. Sorting multiple rows
    By ript73 in forum Excel General
    Replies: 3
    Last Post: 09-06-2009, 02:42 AM
  6. Sorting Data - Multiple coluns and rows into an ordered list
    By summerfresh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2008, 10:33 AM
  7. [SOLVED] sorting multiple rows
    By CCOD in forum Excel General
    Replies: 1
    Last Post: 07-13-2006, 01:55 PM

Tags for this Thread

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