PC Review


Reply
Thread Tools Rate Thread

can you rank more than 7 items? how?

 
 
=?Utf-8?B?RU1JUmVzZWFyY2g=?=
Guest
Posts: n/a
 
      23rd Feb 2006
I can't get Excel to rank more than 7 items (I have 8). Is there a limit to
how many it can do? When the result is a rank of 8, it puts "false" in the
cell and I need it to be blank.

Here's my formula that works, but delivers a "False" on the 8th rank.
=IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"
",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"""")))))))

Here is my formula with the 8th rank, that comes back with an error...
=IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"",IF(RANK(F13,F13:M13,0)=8,""))))))))
 
Reply With Quote
 
 
 
 
=?Utf-8?B?YnBlbHR6ZXI=?=
Guest
Posts: n/a
 
      23rd Feb 2006
You can't nest functions more than 7 levels deep. I'd suggest creating a
table with the ranks in the first column, and the associated letters (or
blanks) in the second column. Suppose that table is located at Sheet2!A1:B8.
Then your formula would be
=vlookup(rank(f13,$F$13:$M$13),Sheet2!$A$1:$B$8,2,false). If you're only
worried about associating letters with the top three, you might also use
=IF(RANK(F13,$F$13:$M$13)>3,"",CHOOSE(RANK(F13,$F$13:$M$13),"u","v","w")).
--Bruce

"EMIResearch" wrote:

> I can't get Excel to rank more than 7 items (I have 8). Is there a limit to
> how many it can do? When the result is a rank of 8, it puts "false" in the
> cell and I need it to be blank.
>
> Here's my formula that works, but delivers a "False" on the 8th rank.
> =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"
> ",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"""")))))))
>
> Here is my formula with the 8th rank, that comes back with an error...
> =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"",IF(RANK(F13,F13:M13,0)=8,""))))))))

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      23rd Feb 2006
Use CHOOSE():


=CHOOSE(RANK(F13,F13:M13,0),"u","v","w","","","","","")

Read about CHOOSE() in help. Its perfect for avoiding nested IF's
--
Gary's Student


"EMIResearch" wrote:

> I can't get Excel to rank more than 7 items (I have 8). Is there a limit to
> how many it can do? When the result is a rank of 8, it puts "false" in the
> cell and I need it to be blank.
>
> Here's my formula that works, but delivers a "False" on the 8th rank.
> =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"
> ",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"""")))))))
>
> Here is my formula with the 8th rank, that comes back with an error...
> =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"",IF(RANK(F13,F13:M13,0)=8,""))))))))

 
Reply With Quote
 
=?Utf-8?B?RU1JUmVzZWFyY2g=?=
Guest
Posts: n/a
 
      23rd Feb 2006
Bruce - thank you so much! I used your [>3, return nothing] idea and that
worked. Wish I had thought of that myself. I was making it more complicated
than it needed to be.

"bpeltzer" wrote:

> You can't nest functions more than 7 levels deep. I'd suggest creating a
> table with the ranks in the first column, and the associated letters (or
> blanks) in the second column. Suppose that table is located at Sheet2!A1:B8.
> Then your formula would be
> =vlookup(rank(f13,$F$13:$M$13),Sheet2!$A$1:$B$8,2,false). If you're only
> worried about associating letters with the top three, you might also use
> =IF(RANK(F13,$F$13:$M$13)>3,"",CHOOSE(RANK(F13,$F$13:$M$13),"u","v","w")).
> --Bruce
>
> "EMIResearch" wrote:
>
> > I can't get Excel to rank more than 7 items (I have 8). Is there a limit to
> > how many it can do? When the result is a rank of 8, it puts "false" in the
> > cell and I need it to be blank.
> >
> > Here's my formula that works, but delivers a "False" on the 8th rank.
> > =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"
> > ",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"""")))))))
> >
> > Here is my formula with the 8th rank, that comes back with an error...
> > =IF(RANK(F13,F13:M13,0)=1,"u",IF(RANK(F13,F13:M13,0)=2,"v",IF(RANK(F13,F13:M13,0)=3,"w",IF(RANK(F13,F13:M13,0)=4,"",IF(RANK(F13,F13:M13,0)=5,"",IF(RANK(F13,F13:M13,0)=6,"",IF(RANK(F13,F13:M13,0)=7,"",IF(RANK(F13,F13:M13,0)=8,""))))))))

 
Reply With Quote
 
daddylonglegs
Guest
Posts: n/a
 
      23rd Feb 2006

You could amend Gary''s student's suggestion to

=CHOOSE(MIN(4,RANK(F13,F13:M13)),"u","v","w","")

or even

=INDEX({"u","v","w",""},MIN(4,RANK(F13,F13:M13)))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=515950

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rank items in a filter Reagan Microsoft Excel Misc 1 25th Jun 2008 04:27 AM
Rank items in VBA Array? jasonsweeney Microsoft Excel Programming 6 12th Oct 2005 09:22 AM
Rank items, select one start date, have remaining dates follow based on rank rob normerica Microsoft Excel Misc 1 15th Aug 2005 09:36 PM
Re: Need FrontPage2002 to RANK items... Andrew Murray Microsoft Frontpage 0 21st Sep 2004 12:03 AM
How to get unique rank numbers when two or more items rank the same. =?Utf-8?B?Q3JhaWcgRC4=?= Microsoft Excel Worksheet Functions 2 26th Mar 2004 09:26 PM


Features
 

Advertising
 

Newsgroups
 


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