Solved

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

Posted on 2013-05-09
2
260 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:
Danny Child earned 500 total points
ID: 39153935
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
ID: 39169584
perfect.  works like a charm.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

839 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