Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Summing data in columns

I have data in letter form: M=male and F= female. I have tried SUMIF but cant
get a total of aal the "M"s or"F"s in a column.What am I doing wrong as the
help pages dont ma ke it clear?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Summing data in columns

COUNTIF, not SUMIF

From help for SUMIF:
"Microsoft Excel provides additional functions that can be used to analyze
your data based on a condition. For example, to count the number of
occurrences of a string of text or a number within a range of cells, use the
COUNTIF function. To have a formula return one of two values based on a
condition, such as a sales bonus based on a specified sales amount, use the
IF function."
--
David Biddulph

"ElGordo" wrote in message
...
I have data in letter form: M=male and F= female. I have tried SUMIF but
cant
get a total of aal the "M"s or"F"s in a column.What am I doing wrong as
the
help pages dont ma ke it clear?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Summing data in columns

Hi,

Try this

=COUNTIF(A1:A20,"m")
=COUNTIF(A1:A20,"f")

Mike

"ElGordo" wrote:

I have data in letter form: M=male and F= female. I have tried SUMIF but cant
get a total of aal the "M"s or"F"s in a column.What am I doing wrong as the
help pages dont ma ke it clear?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Summing data in columns

Use Countif instead of Sumif.

Hope that this is what you are looking for€¦

Assume that you are having the Gender details in A Column.

A COL
M
F
M
F
M
M
F
M

=COUNTIF(A:A,"M")
=COUNTIF(A:A,"F")

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"ElGordo" wrote:

I have data in letter form: M=male and F= female. I have tried SUMIF but cant
get a total of aal the "M"s or"F"s in a column.What am I doing wrong as the
help pages dont ma ke it clear?

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
Conditionally summing data from two columns depending on their value. Andy Excel Worksheet Functions 3 November 23rd 09 07:17 PM
summing columns if there is data Dave Excel Worksheet Functions 2 June 22nd 06 08:04 PM
summing data in several columns david72 Excel Discussion (Misc queries) 3 May 19th 06 07:49 AM
summing columns thedarkman Excel Worksheet Functions 1 January 2nd 06 07:42 PM
Summing Columns Highlander Excel Worksheet Functions 2 July 28th 05 04:46 PM


All times are GMT +1. The time now is 05:49 AM.

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"