Search TeachExcel.com
TeachExcel.com
TE
Teach Excel MS Office Tutorials Excel Consulting Services Excel Forum
Excel Video Tutorials Excel Tips Free Excel Macros Excel Help Resources Contact TeachExcel
Video Tutorials
  • Free Macros
  • Excel Help Directory
  • Excel 2007 Resources
  • Keyboard Shortcuts
  • Excel Forum
  • Contact/About

Tutorials: Lists & Forms



Featured Tutorial
Dynamically Update Drop-Dowm Menus in Excel
Featured Macro
Delete Empty Rows in Excel

Count Cells That Only Contain Text in Microsoft Excel

Video | Similar Helpful Excel Resources

Bookmark and Share

This Excel video tutorial shows you how to write a formula which will count the cells in a list which contain text. The problem is that, often times, you may have a list in Excel which contains text and numbers throughout; when this is the case, you can't count only the text cells without also counting the number cells. This may seem like a very straightforward thing to do, however, Microsoft Excel does not provide one function which can do just this. That means that we need to combine two separate count functions in order to count just the cells which contain text. The functions needed to do this are the COUNT() and COUNTA() functions in Excel.

This is a short yet useful tutorial which will help to save you some time when you need to count cells within a list which contain text within Excel.
   Topics Covered
Count Only the Text Cells within a List
Count Cells in a List in Excel
   Difficulty:         Easy
   Video:               Yes



Got a Question? Ask it Here in the Forum.



Similar Helpful Excel Resources

Excel Formula To Count Cells With Specific Text - Excel

View Content
Greetings

Code:

=SUMPRODUCT((ISNUMBER(SEARCH("9P to 9A",A4:A1000)))*(B4:AC1000={"K"}))



This formula counts "1" every time the string "K" is found in a range of rows which also contain another cell value "9P to 9A". Works great as far as I've found, although, it's probably a little complicated.

Now I also want this formula to search for "Km" in addition to "K".

I tried these and they didn't work:
Code:

=SUMPRODUCT((ISNUMBER(SEARCH("9P to 9A",A4:A1000)))*(B4:AC1000=OR({"K"},{"Km"}))) <<value not found error
=SUMPRODUCT((ISNUMBER(SEARCH("9P to 9A",A4:A1000)))*OR((B4:AC1000={"K"}),(B4:AC1000={"Km"}))) <<gave an incorrect result



I've attached an edited version of the workbook.

Can someone point me in the right direction?

Thank you!

How To Count The Number Of Excel Cells With Text Formatted Italic - Excel

View Content
I have a large spreadsheet in which I am trying to calculate the number cells
in each row with specific contents. Using the "COUNTIF()" function, I am able
to do almost all of what I want. However, I need to subtract out any cells
that have the contents formatted in Italic text. I cannot find any way to do
so. Any suggestions would be welcome.


Allow All Text To Be Seen In A Cell In Microsoft Excel - Excel

View Content
im tryin to format a cell so that it automatically gets bigger if i type a
large amount of text.
can ne1 help?? thanx a lot


How I Can Blink Text In Microsoft Excel - Excel

View Content



Text In Excel Copied Into Microsoft Word - Excel

View Content
I produce a performance report each month in Excel 2003. It shows a number of graphs and charts, together with a lot of text which summarises the main incidents. My boss then has to extract some of the information in my report and a number of other staff reports into a Board Report. The board report is produced in Microsoft Word which means that copying say 20 lines of data into word is a not straightforward and has to be done one line at a time. What do I have to do to my Excel report, in order to make copying data over to Word is a lot easier. Any help is appreciated. Kevin.

Text: Mr. Excel's Vba And Macros For Microsoft Excel 2007 - Excel

View Content

Save From A Text (tab Delimited) To Microsoft Excel Workbook - Excel

View Content

I am opening a text (tab delimited) file, running a macro that copies the sheet and does some formatting. I am also trying to run a macro to Save As a Microsoft Excel Workbook but when I do I lose the original sheet and it saves it as the text (tab delimited) file instead. I need both sheets but can not get a macro to Save As a Microsoft Excel Workbook. Can someone please help me? I am on Office XP/Excel 2002
Thanks

Is There A Way To Block Cells In Microsoft Excel? - Excel

View Content
For example, if your emailing someone a spreadsheet and you dont want them to change anything on it, how do you block or prevent the user from making changes to the document. On Microsoft Excel.

Microsoft Excel Viewer 2003 Won't Open Microsoft Excel Worksheet - Excel

View Content


Today a company e-mailed me a quotation with the extension: xls

I don't have Excel and eventually found Excel Viewer 2003. This took 45 mins
to download, and then didn't work. The Excel File Graphic had appeared atop
the quotation file - but when clicked on Excel Viewer 2003 opened and just
said: cannot open this file type.

Any ideas? Would appreciate solution. Running XP SP2 on a Dimension 8250..

Thanks


Microsoft Excel 2010 Doesn't Support Microsoft Excel 2007 - Excel

View Content
Hi, may i know is there any setting has to be enabled when i run my 2007 excel file (hello.xls) on 2010 excel?

The macro in this file can run smoothly when i open it with microsoft excel 2007. Yet, when i tried to open my file with microsoft excel 2010, an error msg state that my file is not being supported my microsoft excel 2010.

I have a function Code:

Private Declare Function SetTimer Lib "user32"


in my macro.. i wonder is it becoz of this my file is not being supported.. but i have google that excel 2010 does support 32 and 64.

Please advise... Thank u very much

Contact | Privacy Policy | Disclaimer
Copyright© 2012 TeachExcel.com