#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Count if

I'm not sure if anyone can look at this formula and help explain but I am
trying to find the relevance of countif in this situation.

=RANK(F4,$F$4:$F$25)+COUNTIF($F$4:$F4,F4)-1

We are ranking "winners" and in this formula it is not accounting for a tie.
But when I take the count if function it is messing up a vlookup in another
column.

I appreciate any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Count if

When you have duplicate entries each entry will be ranked differently
=RANK(F4,$F$4:$F$25)+COUNTIF($F$4:$F4,F4)-1

each duplicate entry will have the same ranking
=RANK(F4,$F$4:$F$25)


If this post helps click Yes
---------------
Jacob Skaria


"Jennifer" wrote:

I'm not sure if anyone can look at this formula and help explain but I am
trying to find the relevance of countif in this situation.

=RANK(F4,$F$4:$F$25)+COUNTIF($F$4:$F4,F4)-1

We are ranking "winners" and in this formula it is not accounting for a tie.
But when I take the count if function it is messing up a vlookup in another
column.

I appreciate any help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Count if


I figured it out.


"Jennifer" wrote:

I'm not sure if anyone can look at this formula and help explain but I am
trying to find the relevance of countif in this situation.

=RANK(F4,$F$4:$F$25)+COUNTIF($F$4:$F4,F4)-1

We are ranking "winners" and in this formula it is not accounting for a tie.
But when I take the count if function it is messing up a vlookup in another
column.

I appreciate any help.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Count if

the coundIF ranks the same number

eg
if your list was say 4,5,4,2,1 the rank would be 2,1,2,4,5
since the two 4's take up 3rd and 2nd , ie rank equally second
the COUNTIF ajsuts the rank of the 4'd buy counting if there was one ahead
so the first 4 , nothing ahead, gets a rank of 2
the 2nd 4 , also gets a rank of 2, but there's one 4 alreay counted, so 2+1
= 3

if i change the list to 4,5,4,2,4
the rank is 2,1,2,5,2
the count if
is
2(2+0),1,3(2+1),5,4(2+2)

is this clear?








"Jennifer" wrote:

I'm not sure if anyone can look at this formula and help explain but I am
trying to find the relevance of countif in this situation.

=RANK(F4,$F$4:$F$25)+COUNTIF($F$4:$F4,F4)-1

We are ranking "winners" and in this formula it is not accounting for a tie.
But when I take the count if function it is messing up a vlookup in another
column.

I appreciate any help.

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
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Excel Count characters in a textbox to display character count? [email protected] Excel Programming 1 February 8th 07 06:31 AM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 07:04 PM.

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"