#1   Report Post  
Posted to microsoft.public.excel.misc
ceemo
 
Posts: n/a
Default in order of columns


I would like to orrange the names in order of sales then days work then
priority


name priority days work sales
bob 1 1 3
pete 3 1 3
jane 2 2 5
jill 5 3 5
terry 4 1 4

the results would be

Jill
Jane
Terry
Pete
Bob


Ive been given some tips of the rank function but havnt managed to work
out how best to use it for my purpose.


--
ceemo
------------------------------------------------------------------------
ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534349

  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default in order of columns

Won't SORT work for you?
A recorded macro

Sub Macro4()
'
' Macro4 Macro
' Macro recorded 4/19/2006 by Don Guillett
'

'
Range("A2:D7").Select
Selection.Sort Key1:=Range("D3"), Order1:=xlDescending,
Key2:=Range("C3") _
, Order2:=xlDescending, Key3:=Range("B3"), Order3:=xlDescending,
Header _
:=xlGuess, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom _
, DataOption1:=xlSortNormal, DataOption2:=xlSortNormal,
DataOption3:= _
xlSortNormal
End Sub

--
Don Guillett
SalesAid Software

"ceemo" wrote in
message ...

I would like to orrange the names in order of sales then days work then
priority


name priority days work sales
bob 1 1 3
pete 3 1 3
jane 2 2 5
jill 5 3 5
terry 4 1 4

the results would be

Jill
Jane
Terry
Pete
Bob


Ive been given some tips of the rank function but havnt managed to work
out how best to use it for my purpose.


--
ceemo
------------------------------------------------------------------------
ceemo's Profile:
http://www.excelforum.com/member.php...o&userid=10650
View this thread: http://www.excelforum.com/showthread...hreadid=534349



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
How do I wrap Excel columns in a printout? R2 Excel Discussion (Misc queries) 1 April 1st 06 09:47 AM
adding three consecutive columns Darin Gibson Excel Worksheet Functions 1 November 22nd 05 08:50 PM
Columns FemIce Excel Discussion (Misc queries) 1 September 28th 05 09:29 AM
Print order of worksheets Stray Doug Excel Discussion (Misc queries) 3 September 21st 05 12:37 AM
how do i change order of columns in a list published to sharepoint p_wills Excel Discussion (Misc queries) 0 May 19th 05 08:30 AM


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