A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

number times a value appears in a column beside it chronological



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2010, 01:42 PM posted to microsoft.public.excel.worksheet.functions
Papa Cricket
external usenet poster
 
Posts: 1
Default number times a value appears in a column beside it chronological

I am looking to count how many times a number appears in a column beside that
number as you go down that column. Beside the first occurance of the number
10 the cell in the column beside it would have a 1, the next occurance of the
number 10 the cell in the column beside it would have a 2, and so on. Thank
you in advance for your help.
  #2  
Old January 7th, 2010, 01:50 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default number times a value appears in a column beside it chronological

Assuming the column of numbers begins in A1
In B1 enter =COUNTIF(A1:$A$1,A1)
Copy this down the column by double clicking B1's fill handle
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Papa Cricket" Papa wrote in message
...
I am looking to count how many times a number appears in a column beside
that
number as you go down that column. Beside the first occurance of the
number
10 the cell in the column beside it would have a 1, the next occurance of
the
number 10 the cell in the column beside it would have a 2, and so on.
Thank
you in advance for your help.


  #3  
Old January 7th, 2010, 01:53 PM posted to microsoft.public.excel.worksheet.functions
bapeltzer
external usenet poster
 
Posts: 43
Default number times a value appears in a column beside it chronological

Sounds like a COUNTIF function, where the top of the range is fixed and the
bottom of the range is the current row. So if your data is in column A and
your count in column B, you could enter =countif(a$2:a2,a2) in cell b2, and
copy that down.

"Papa Cricket" wrote:

I am looking to count how many times a number appears in a column beside that
number as you go down that column. Beside the first occurance of the number
10 the cell in the column beside it would have a 1, the next occurance of the
number 10 the cell in the column beside it would have a 2, and so on. Thank
you in advance for your help.

  #4  
Old January 7th, 2010, 01:58 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
external usenet poster
 
Posts: 516
Default number times a value appears in a column beside it chronological

Senior moment!
That should read =COUNTIF($A$1:A1,A1)
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Papa Cricket" Papa wrote in message
...
I am looking to count how many times a number appears in a column beside
that
number as you go down that column. Beside the first occurance of the
number
10 the cell in the column beside it would have a 1, the next occurance of
the
number 10 the cell in the column beside it would have a 2, and so on.
Thank
you in advance for your help.


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:32 AM.


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