A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

linking rows



 
 
Thread Tools Display Modes
  #1  
Old September 18th, 2008, 04:36 PM posted to microsoft.public.excel.worksheet.functions
Claire
external usenet poster
 
Posts: 132
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  
Old September 18th, 2008, 05:38 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
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!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:52 PM.


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