Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sorting rows to match headings

I have several columns of data each with its own heading. I need to get the
data within each column to match its respective heading.

Here's a sample of how it looks now:

Headings: Alaska Asia Canada Caribbean Not
Specified
Row 1: Canada Caribbean
Row 2: Alaska Canada Caribbean
Row 3: Not Specified

Here's how I'd like it to look:

Headings: Alaska Asia Canada Caribbean Not
Specified
Row 1: Canada Caribbean
Row 2: Alaska Canada Caribbean
Row 3:
Not Specified

I'm on Excel 2002. Hopefully, someone can help!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sorting rows to match headings

One play to try ..

Assuming the source table as posted is in Sheet1, cols A to E,
col headers in A1:E1, data from row2 down

In another Sheet2,
Copy & paste the same col headers into A1:E1

Then put in A2:
=IF(ISNUMBER(MATCH(A$1,Sheet1!2:2,0)),A$1,"")
Copy A2 across to E2, fill down as far as required

This should return the desired results .. If necess. freeze the results by
selecting cols A to E, then do an "in-place": Copy Paste special Check
Values OK
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"kconnelly" wrote:
I have several columns of data each with its own heading. I need to get the
data within each column to match its respective heading.

Here's a sample of how it looks now:

Headings: Alaska Asia Canada Caribbean Not
Specified
Row 1: Canada Caribbean
Row 2: Alaska Canada Caribbean
Row 3: Not Specified

Here's how I'd like it to look:

Headings: Alaska Asia Canada Caribbean Not
Specified
Row 1: Canada Caribbean
Row 2: Alaska Canada Caribbean
Row 3:
Not Specified

I'm on Excel 2002. Hopefully, someone can help!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sorting rows based upon formatting ahaigh Excel Discussion (Misc queries) 5 June 23rd 06 02:29 PM
sorting a sheet with outlined rows Ron Excel Discussion (Misc queries) 0 June 8th 06 04:25 PM
Match Each Numeric occurrence and Return Individual Rows of Data Sam via OfficeKB.com Excel Worksheet Functions 4 October 13th 05 04:22 AM
sorting a constantly changing set of rows in VBA ayl322 Excel Discussion (Misc queries) 4 September 16th 05 03:04 PM
Sorting rows with alphanumeric starter cells axlmastr Excel Worksheet Functions 8 September 9th 05 03:28 PM


All times are GMT +1. The time now is 08:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"