Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default generating a rank order on two variables

Hello,
Is this possible...

I want excel to scan column A which contains course codes
some of which will be the same.
Then I want excel to compare the same course codes with
the corresponding entry date entered in Column B.
In column C I would like excel to generate a numbered
list base on same course code and the date entered.

This is basically a course waiting list that will assign
a priority number to an individual who wishes to be
placed on a course waiting list based on the date they
made the request.

Any suggestions are appreciated,

Rekoop
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default generating a rank order on two variables

rekoop wrote...
...
I want excel to scan column A which contains course codes some
of which will be the same. Then I want excel to compare the
same course codes with the corresponding entry date entered
in Column B. In column C I would like excel to generate a
numbered list base on same course code and the date entered.

This is basically a course waiting list that will assign a priority
number to an individual who wishes to be placed on a course
waiting list based on the date they made the request.

...

Presumably your list also includes a column holding student IDs for th
individuals making such requests; otherwise, your list wouldn't be abl
to assign priorities reliably to the students making the requests. S
I'll address the problem assuming that col C is the ID of the studen
making the request, and the priority number would be in column D
Further, I'll assume the range containing this table is A1:C25 wit
column headings in row 1.

Enter the following.

D1:
Priority

D2:
=1+SUMPRODUCT(--($A$2:$A$25=A2),--($B$2:$B$25<B2))
+SUMPRODUCT(--(A$1:A1=A2),--(B$1:B1=B2))

Fill D2 down into D3:D25. Copy A1:D25 and paste special as values i
blank range elsewhere, then sort that copy first on course number the
on priority.

Note that the D2 formula uses position on original list to resolve tie
between students requesting the same course on the same day. Even i
you recorded time of day, it's still possible that two students coul
submit requests at exactly the same time, so some form of tie-breakin
is needed

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default generating a rank order on two variables

An alternative to the function-based solution would be to sort the data
by columns A, the course id, as the primary key and B, the date, as the
secondary key. This will give you a complete list of all courses and
all wait-list dates. To restrict to a single course, use a auto-filter
based on A.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hello,
Is this possible...

I want excel to scan column A which contains course codes
some of which will be the same.
Then I want excel to compare the same course codes with
the corresponding entry date entered in Column B.
In column C I would like excel to generate a numbered
list base on same course code and the date entered.

This is basically a course waiting list that will assign
a priority number to an individual who wishes to be
placed on a course waiting list based on the date they
made the request.

Any suggestions are appreciated,

Rekoop

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
Rank order of errors Derek Excel Worksheet Functions 1 November 19th 07 03:59 PM
Order/Rank Rod Excel Worksheet Functions 14 July 28th 07 11:00 PM
generating rank-ordered list [email protected] Excel Discussion (Misc queries) 4 November 13th 06 12:48 PM
Generating numbers in order with excel PLEASE HELP color1928 Excel Discussion (Misc queries) 2 July 30th 05 12:01 AM
Tie breaking in a rank order HondaMike Excel Worksheet Functions 1 December 29th 04 11:30 PM


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