Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 147
Default How do I count the number of times a value appears?

Sorry for the confusing title....I couldn't figure out another way to say it.
But I can't figure out which formula to use for this.

For example:
Workbook 1 - contains 2 worksheets
On Sheet1, Column A, there is a list of numbers. i.e. A1 = 1, A2 = 1, A3 = 2
etc as shown below:
1
1
2
2
4
4
4
4
5
6
7
7
7
2
2
4
4
4
4
5
6
1
2
2

On Sheet2, Column A I have a list of sequential numbers as shown below
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

If I want a total of how many times the #1 shows up on Sheet1 in Column A,
and want that value put in column B on Sheet 2.....what formula would I use?

I hope this makes sense to someone :-)

Christine
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default How do I count the number of times a value appears?

Hi Christine

=COUNTIF(Sheet1!A:A,A1)
and copy down

--
Regards

Roger Govier


"Christine" wrote in message
...
Sorry for the confusing title....I couldn't figure out another way to
say it.
But I can't figure out which formula to use for this.

For example:
Workbook 1 - contains 2 worksheets
On Sheet1, Column A, there is a list of numbers. i.e. A1 = 1, A2 = 1,
A3 = 2
etc as shown below:
1
1
2
2
4
4
4
4
5
6
7
7
7
2
2
4
4
4
4
5
6
1
2
2

On Sheet2, Column A I have a list of sequential numbers as shown below
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

If I want a total of how many times the #1 shows up on Sheet1 in
Column A,
and want that value put in column B on Sheet 2.....what formula would
I use?

I hope this makes sense to someone :-)

Christine



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 147
Default How do I count the number of times a value appears?

Roger, thanks so much. I was making it more difficult than it had to be
trying to use a vlookup and a unique value......I'll have to hit myself in
the head ;-). Thanks for your help. Christine

"Roger Govier" wrote:

Hi Christine

=COUNTIF(Sheet1!A:A,A1)
and copy down

--
Regards

Roger Govier


"Christine" wrote in message
...
Sorry for the confusing title....I couldn't figure out another way to
say it.
But I can't figure out which formula to use for this.

For example:
Workbook 1 - contains 2 worksheets
On Sheet1, Column A, there is a list of numbers. i.e. A1 = 1, A2 = 1,
A3 = 2
etc as shown below:
1
1
2
2
4
4
4
4
5
6
7
7
7
2
2
4
4
4
4
5
6
1
2
2

On Sheet2, Column A I have a list of sequential numbers as shown below
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

If I want a total of how many times the #1 shows up on Sheet1 in
Column A,
and want that value put in column B on Sheet 2.....what formula would
I use?

I hope this makes sense to someone :-)

Christine




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
counting the number of times value of "x" appears in a row Hugh Excel Discussion (Misc queries) 2 August 2nd 06 12:17 PM
Count number of times two columns have desired values Gavin Deveau Excel Discussion (Misc queries) 2 June 16th 06 06:29 PM
count each cell that have a number and take that number and count. Vick Excel Discussion (Misc queries) 3 May 19th 06 01:51 AM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM


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