Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 231
Default Assigning rank or appearance

I have a data table something like this but much larger.
Currently column C is empty. I want to return next to each item what
position it is. i.e. in line 3, apple has appeared once already, so the value
should be 2.
Any ideas???

ColA ColB ColC
Apple 34 1
Orange 42 1
Apple 85 2
Apple 54 3
Orange 24 2
Peach 87 1
Peach 91 2
Orange 75 3

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Assigning rank or appearance

Assuming the first "apple" to be in A1:
=COUNTIF($A$1:A1,A1)
will do what you ask for
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Sarah" wrote in message
...
I have a data table something like this but much larger.
Currently column C is empty. I want to return next to each item what
position it is. i.e. in line 3, apple has appeared once already, so the
value
should be 2.
Any ideas???

ColA ColB ColC
Apple 34 1
Orange 42 1
Apple 85 2
Apple 54 3
Orange 24 2
Peach 87 1
Peach 91 2
Orange 75 3



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 231
Default Assigning rank or appearance

That's awesome - thanks!!!

"Bernard Liengme" wrote:

Assuming the first "apple" to be in A1:
=COUNTIF($A$1:A1,A1)
will do what you ask for
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Sarah" wrote in message
...
I have a data table something like this but much larger.
Currently column C is empty. I want to return next to each item what
position it is. i.e. in line 3, apple has appeared once already, so the
value
should be 2.
Any ideas???

ColA ColB ColC
Apple 34 1
Orange 42 1
Apple 85 2
Apple 54 3
Orange 24 2
Peach 87 1
Peach 91 2
Orange 75 3




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 & Group Tournament chad Excel Discussion (Misc queries) 0 September 20th 06 05:35 PM
RANK Function - Zero Value Ranked as 1 - Should be 10 Sandi Excel Worksheet Functions 8 August 4th 06 03:05 AM
Can I Rank on a second criteria if the first is equal? CohenRB Excel Discussion (Misc queries) 3 June 23rd 06 01:54 PM
RANK, duplicate ranking but no gaps in rank arron laing Excel Worksheet Functions 4 June 14th 06 07:57 AM
RANK formula KG Excel Discussion (Misc queries) 3 September 23rd 05 03:27 PM


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