Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Advanced Sorting - urgent

I would like to sort a box of data by one cell in each box, rearranging the
boxes while keeping the data in each individual cell intact.
In the example below, I would like to sort the boxes (imagine lines around
each company) by the difference in the salaries betweern President and VP-
lowest to highest. So the companys should be organized Company 2 (with all
its info intact), then company 3, then company 1.

Example: Companies with names of CEOs and salaries
Company Name Title Salary Bonus
Company1 AJ Feele President 999999 400000
Tom Cruise VP 777777 200000
222222
200000

Company2 MLK Jr. Pres 300000 15000
Howard Stern VP - Sales 200000 13000
100000
2000

Company3 Heinz Ward Pres 500000 150000
Ghandi VP 100000
50000
400000
100000

I do not care if the cells are combined somehow, I just need to make sure I
can sort by the difference in salary or the diffrence in bonus. The regular
sort funcion cannot do this and I would not like to move them manually
because I have hundreds to sort this way. If you have any insights, PLEASE
let me know. I greatly appreciate your time and help.

Jesse
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Advanced Sorting - urgent

This is what I would do: Assuming your data is in columns A thru E and that
there is one blank row between boxes, in column F create a formula for each
row in the box plus the blank row below it referring to the cell with the
salary difference (i.e. D4). Copy this box of four cells down through column
F. Copy and Edit, Paste Special, choose Value and click OK. In column G
create consecutive numbers from 1 thru whatever. Now sort the whole area with
a primary sort on column F and a secondary sort on column G.
--
ChrisJ
Omaha


"Jesseboat" wrote:

I would like to sort a box of data by one cell in each box, rearranging the
boxes while keeping the data in each individual cell intact.
In the example below, I would like to sort the boxes (imagine lines around
each company) by the difference in the salaries betweern President and VP-
lowest to highest. So the companys should be organized Company 2 (with all
its info intact), then company 3, then company 1.

Example: Companies with names of CEOs and salaries
Company Name Title Salary Bonus
Company1 AJ Feele President 999999 400000
Tom Cruise VP 777777 200000
222222
200000

Company2 MLK Jr. Pres 300000 15000
Howard Stern VP - Sales 200000 13000
100000
2000

Company3 Heinz Ward Pres 500000 150000
Ghandi VP 100000
50000
400000
100000

I do not care if the cells are combined somehow, I just need to make sure I
can sort by the difference in salary or the diffrence in bonus. The regular
sort funcion cannot do this and I would not like to move them manually
because I have hundreds to sort this way. If you have any insights, PLEASE
let me know. I greatly appreciate your time and help.

Jesse

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
Advanced Sorting - urgent Jesseboat Excel Worksheet Functions 0 November 14th 06 05:54 PM
Advanced Filter not working babypenquin Excel Worksheet Functions 1 June 22nd 06 05:48 PM
Sorting Sorting Sorting Skydiver Excel Discussion (Misc queries) 4 June 3rd 06 02:42 PM
Advanced Sorting #'s?? Missy Excel Discussion (Misc queries) 3 April 12th 06 11:37 PM
Urgent Urgent Urgent!!! Ruslan Excel Discussion (Misc queries) 6 March 30th 05 02:59 PM


All times are GMT +1. The time now is 10:30 PM.

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

About Us

"It's about Microsoft Excel"