Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Search range and sort another range

I have two columns of data (see below). Is there a way to sort column
B by defining ranges based on column A. I have to sort ItemA, ItemB,
ItemC in column C each time "Color" appears in column A. So, my data
is like this:

Col. A
1 Color
2 Blue
3 Blue
4 Blue
5 Color
6 Red
7 Color
8 Green
9 Green

Col B
1 Item
2 ItemA
3 ItemC
4 ItemB
5 Item
6 ItemA
7 Item
8 ItemB
9 ItemA

I need it to look like this:

Col. A
1 Color
2 Blue
3 Blue
4 Blue
5 Color
6 Red
7 Color
8 Green
9 Green

Col B
1 Item
2 ItemA
3 ItemB
4 ItemC
5 Item
6 ItemA
7 Item
8 ItemA
9 ItemB

Notice Column B is being sorted based on column A. The sort range is
based on finding "Color" in column A---then offsetting by one row and
column.

Sorting updated: B3, B4
Sorting updated: B8, B9

Any help is greatly appreciated!

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
Search range for text not in another range simon howard Excel Discussion (Misc queries) 3 March 28th 07 08:44 PM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
Need Help soon on how to search through a range VBAapprentice Excel Programming 1 March 15th 06 04:07 AM
Search Range for item in seperate range [email protected][_2_] Excel Programming 6 January 9th 06 03:53 PM
How to search a range for a suburb in a large range Bogan.. Excel Programming 2 June 22nd 05 01:20 PM


All times are GMT +1. The time now is 02:24 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"