Solved

Sorting Sections again, this time on different sheets

Posted on 2011-09-26
5
174 Views
Last Modified: 2012-05-12
Recently I asked for help sorting sections on an Excel spreadsheet.  I have three sections separated by blank rows and I want to sort the first section by the last column and have the other 2 sections sort the same way as the first.  I received a solution that worked great and I really appreciate it.  Now I'm wondering if I can do the same thing but I have an additional three sections on another worksheet.  So the sheet I used originally looks like the attached.  I would have another sheet with three similar sections (different metrics) and would want them to sort when this sheet sorts and to sort in the same order as the first section on the first sheet.

I hope this is not too confusing...
testworksheetforsort-r5.xlsm
0
Comment
Question by:dkcoop03
  • 4
5 Comments
 
LVL 10

Expert Comment

by:SANTABABY
ID: 36602412
Please the attached file, you need to indicate the full path of the second workbook that you want to sort as well.
Please let me know if this works for you. The assumtio is : we are also sorting in sheet 1 of the other workbook.
If you need more exception handling code (such as second workbook does not exists etc) can be added.
t1.xlsm
0
 

Author Comment

by:dkcoop03
ID: 37018589
Sorry I am so late in responding.  I think I was unclear.  I don't need to sort another workbook, just another sheet in the same workbook.  So the first worksheet has the sort button on it and has three sections.  The sort button sorts the first section and the following two sections sort the same way as the first section -- this is all done on the same worksheet.  The next worksheet (right after this first one) does not have a sort button on it because it also has 3 sections and they need to be sorted in the same order as the first section on the first sheet.  Let me know if this makes sense.

Thanks,
0
 

Author Comment

by:dkcoop03
ID: 37122532
I've requested that this question be closed as follows:

Accepted answer: 0 points for dkcoop03's comment http:/Q_27328462.html#37018589

for the following reason:

I came up with a solution that is kind of messy but it works for now. &nbsp;I basically create an index on the first sheet and match the second sheet to that index and then sort.<br /><br />Thanks for your help
0
 

Accepted Solution

by:
dkcoop03 earned 0 total points
ID: 37122533
Sorry I didn't mean to accept my own solution.  There really was no solution given but I was going to give the points to the responder anyway.  I'm not sure what to do in the case where no solution worked.
0
 

Author Closing Comment

by:dkcoop03
ID: 37158277
I created an index from one sheet to another and then used the match function but included sheet names
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question