#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default linking rows

i need to link numerous pairs of rows in my spreadsheet so they stay
connected when i sort. when i try to do this by "group"ing, if i have 2 sets
of 2 that are grouped and live right next to one another, the 'group'
function automatically groups them all together. so instead of 2 separate
groups of 2 i get one group of 4. this is not helpful.

how can i 1) avoid this auto-grouping problem and maintain separate groups
side by side? or 2) is there a better way to do this?

thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default linking rows

One thing you can do is to make use of a helper column and put this in row 2
of that column:

=INT(ROW()/2)+MOD(ROW(),2)/10

When you copy this down it will give you:

1
1.1
2
2.1
3
3.1

etc., so that rows are paired. If your sort field is column A, for example,
then you can amend the formula to:

=A1&"_"&TEXT(INT(ROW()/2)+MOD(ROW(),2)/10,"000.0")

and then copy this down instead. Include this field in your sort area and
sort on the helper column. You can delete the helper column when you've
finished with it.

Hope this helps.

Pete

"Claire" wrote in message
...
i need to link numerous pairs of rows in my spreadsheet so they stay
connected when i sort. when i try to do this by "group"ing, if i have 2
sets
of 2 that are grouped and live right next to one another, the 'group'
function automatically groups them all together. so instead of 2 separate
groups of 2 i get one group of 4. this is not helpful.

how can i 1) avoid this auto-grouping problem and maintain separate groups
side by side? or 2) is there a better way to do this?

thank you!



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
Linking Rows? [email protected] Excel Worksheet Functions 3 May 13th 08 01:00 PM
Linking to a Variable Number of Rows - XP/07 RFJ Excel Worksheet Functions 4 May 17th 07 07:53 PM
Linking rows to a column Rafael Guerreiro Osorio Excel Discussion (Misc queries) 0 November 30th 06 01:27 PM
Linking rows to a column Dan Evers Excel Discussion (Misc queries) 0 November 30th 06 01:13 PM
linking whole rows of cells fxcel Excel Worksheet Functions 1 July 2nd 05 12:16 PM


All times are GMT +1. The time now is 03:22 AM.

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"