Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default sorting or adding numbers of the same value

I want to count the number of 1's, 2, in a column. For example i use the
number 1 to represent a smith city resedient, and number 2 to represent
jackons city residents, i want to total the amount of each group?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default sorting or adding numbers of the same value

hi
=countif(A1:A500,1)
and
=countif(A1:A500,2)
Trick...if your two formula were in say B1 and B2, in C1, you could put the
number 1 or 2 then have only 1 formula like this....
= countif(A1:A500, C1)
the formula would count whatever is in C1.

Regards
FSt1

"luckysg" wrote:

I want to count the number of 1's, 2, in a column. For example i use the
number 1 to represent a smith city resedient, and number 2 to represent
jackons city residents, i want to total the amount of each group?

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
Sorting high numbers from low numbers between two rows scotty New Users to Excel 7 February 12th 07 09:38 PM
Sorting - cells containing numbers, numbers and letters Gunny Excel Discussion (Misc queries) 5 July 16th 06 01:22 AM
Sorting numbers with differing numbers of digits Trudy Excel Discussion (Misc queries) 5 March 4th 06 12:31 PM
Sorting and Adding Space Stewart Excel Worksheet Functions 2 November 16th 05 10:21 PM
Sorting and adding Chevyone Excel Discussion (Misc queries) 3 July 6th 05 03:41 PM


All times are GMT +1. The time now is 09:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"