#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Formating

I have a range of cells say A1 to A5 that can have the numbers 1, 2, or 3 in
them.

In cell B1 I want to display the total number of cells in range A1:A5 that
have a 1 in
In cell C1 I want to display the total number of cells in range A1:A5 that
have a 2 in
In cell D1 I want to display the total number of cells in range A1:A5 that
have a 3 in

How do I do it ?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default Formating

B1: =COUNTIF(A1:A5,1)
C1: =COUNTIF(A1:A5,2)
D1: =COUNTIF(A1:A5,3)

Stephane.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Formating

in B1:

=COUNTIF(A1:A5,1)

in C1:

=COUNTIF(A1:A5,2)

in D1:

=COUNTIF(A1:A5,3)

"Andy_Trow" wrote:

I have a range of cells say A1 to A5 that can have the numbers 1, 2, or 3 in
them.

In cell B1 I want to display the total number of cells in range A1:A5 that
have a 1 in
In cell C1 I want to display the total number of cells in range A1:A5 that
have a 2 in
In cell D1 I want to display the total number of cells in range A1:A5 that
have a 3 in

How do I do it ?

Thanks

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
If, Then, Or formating Scott Excel Discussion (Misc queries) 1 June 21st 07 02:16 AM
formating Ken Excel Worksheet Functions 1 June 24th 06 01:56 AM
Tab formating Brisbane Rob Excel Discussion (Misc queries) 4 January 27th 06 12:21 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Formating h:mm AM/PM Mike R Excel Discussion (Misc queries) 3 January 7th 05 02:12 AM


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