Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default MATCH/IF/OR/AND statements not what I need apparently

Here is the picture of what I'm working with:

http://img121.yfrog.com/i/excel.jpg/

The rank row is the rank of the job according to the static rule, which is
in order from lowest to highest. The formula, just for one of these cells
(C8) is =IF(C2<=$B$1;RANK(C7;$B$5:$U$5;1);"") The starting IF statement is
just to avoid #N/A! errors when there are less jobs than the position
referenced. Row 2 by the way has just numbers 1,2, etc, but are colored white
to hide them without hiding the row.

The order row is the order of the jobs. The numbers here are job numbers,
not ranks. Example formula (D8): =IF(D2<=$B$1;MATCH(D2;$B$8:$U$8;0);"")
Again, referencing the 2nd row just as a function to get the order correct.

As you can see, however, there is a problem. The rule here is that if there
are two jobs that have the exact tie for the static rule, then the job with
the lowest job number goes first. Rank row here shows 641513, skipping 2.
That obviously causes a problem in the order row, since job 5 has nowhere to
go. The order should be 356241.

I've tried several nested IF statements, IF and MATCH statements, even
MATCH(IF(AND())) statements to no avail. So, how does one handle this
situation?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default MATCH/IF/OR/AND statements not what I need apparently

Definitely still need help on this!

"Richard" wrote:

Here is the picture of what I'm working with:

http://img121.yfrog.com/i/excel.jpg/

The rank row is the rank of the job according to the static rule, which is
in order from lowest to highest. The formula, just for one of these cells
(C8) is =IF(C2<=$B$1;RANK(C7;$B$5:$U$5;1);"") The starting IF statement is
just to avoid #N/A! errors when there are less jobs than the position
referenced. Row 2 by the way has just numbers 1,2, etc, but are colored white
to hide them without hiding the row.

The order row is the order of the jobs. The numbers here are job numbers,
not ranks. Example formula (D8): =IF(D2<=$B$1;MATCH(D2;$B$8:$U$8;0);"")
Again, referencing the 2nd row just as a function to get the order correct.

As you can see, however, there is a problem. The rule here is that if there
are two jobs that have the exact tie for the static rule, then the job with
the lowest job number goes first. Rank row here shows 641513, skipping 2.
That obviously causes a problem in the order row, since job 5 has nowhere to
go. The order should be 356241.

I've tried several nested IF statements, IF and MATCH statements, even
MATCH(IF(AND())) statements to no avail. So, how does one handle this
situation?

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
Help with INDEX and MATCH statements. Sean.rogers[_2_] Excel Worksheet Functions 0 April 23rd 08 01:21 PM
Multiple match statements? Jas Excel Discussion (Misc queries) 7 June 15th 07 10:00 PM
match statements Greg B[_2_] Excel Discussion (Misc queries) 1 June 12th 07 10:50 PM
Match/Lookup Statements Brian in FT W. Excel Worksheet Functions 3 June 2nd 05 04:08 PM


All times are GMT +1. The time now is 04:23 AM.

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

About Us

"It's about Microsoft Excel"