Solved

How can i add the number of cells in excel with given text criteria?

Posted on 2013-05-09
2
253 Views
Last Modified: 2013-05-15
I have a few simple spreadsheets in excel and want to sum a few of the columns in which there is text.  E.G. one column is the geographical location.  "XYZ"  I would like a formula to quickly sum the number of cells that have "XYZ" in it.  

I have tried the SUMIF formula but does not seem to be working.  i get a blank cell.
0
Comment
Question by:YankeeFan03
2 Comments
 
LVL 23

Accepted Solution

by:
DanCh99 earned 500 total points
Comment Utility
to count a range of cells that match TEXT criteria, use =COUNTIF(range,"XYZ")
 - you can of course replace "XYZ" with a cell reference.

SUMIF is better for *numerical* comparisons, ie Sum all cells that are bigger than a certain value.
0
 

Author Closing Comment

by:YankeeFan03
Comment Utility
perfect.  works like a charm.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now