Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cybermaksim
 
Posts: n/a
Default How do I count wildcard text meeting certain criteria in EXCEL?

I can't figure out how to count occurrences of a wildcard matching certain
criteria. For example, let's say I want to count the number of cells
containing words ending in "ing" - even if those cells contain other words
besides the one ending in "ing". How do I do that? And then, out of that
count, how do I count only the number of those cells which also contain a
value of "X" in the same row one column to the right? Let me give a visual:

A B C
1 slow ending X
2 slow beginning X
3 fast ending

In this example, there are 3 cells in column A that contain a word that ends
in "ing", and out of those 3, 2 of them have an X in column B. What formula
would I use in this situation to account for the wildcard *ing, and to count
only those occurrences that also have an X in column B, to give the value of
2 in the cell containing this formula?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default How do I count wildcard text meeting certain criteria in EXCEL?

One way:

=SUMPRODUCT(ISNUMBER(SEARCH("ing",A1:A10))*(B1:B10 ="X"))

Adapt the ranges to suit, but it cannot be entire col refs (A:A, B:B).
Replace SEARCH with FIND if you need it to be case-sensitive.
(SEARCH is not case-sensitive)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"cybermaksim" wrote in message
...
I can't figure out how to count occurrences of a wildcard matching certain
criteria. For example, let's say I want to count the number of cells
containing words ending in "ing" - even if those cells contain other words
besides the one ending in "ing". How do I do that? And then, out of that
count, how do I count only the number of those cells which also contain a
value of "X" in the same row one column to the right? Let me give a

visual:

A B C
1 slow ending X
2 slow beginning X
3 fast ending

In this example, there are 3 cells in column A that contain a word that

ends
in "ing", and out of those 3, 2 of them have an X in column B. What

formula
would I use in this situation to account for the wildcard *ing, and to

count
only those occurrences that also have an X in column B, to give the value

of
2 in the cell containing this formula?



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
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Excel - merged cells w/wrapped text auto row height doesn't work. Fred Excel Discussion (Misc queries) 0 October 21st 05 02:11 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Where is text to speech in excel 2003? BogieJr Excel Discussion (Misc queries) 2 March 26th 05 08:04 PM


All times are GMT +1. The time now is 04:56 AM.

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

About Us

"It's about Microsoft Excel"