Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 222
Default Using SEARCH in a single cell to COUNT multiple entries of same te

To count how many times a single letter is in an entire cell, use this:

=LEN(Y2)-LEN(SUBSTITUTE(Y2,"C",""))

To do the "double" count for C and S, just double the formula:

=LEN(Y2)-LEN(SUBSTITUTE(Y2,"C",""))+LEN(Y2)-LEN(SUBSTITUTE(Y2,"S",""))

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"tcbooks" wrote:

=(Count(Search("(C)",$Y2)))+(Count(Search("(S)",$Y 2)))

Col Y (row 2) C Type 00 Type S Type
sab12334(C) 0056223(00) 1 1 0
sab22233(C)

The above formula is what I'm using to extract certain equipment types from
a single cell. The problem is that it's only counting 1 time. For example,
cell Y2 above has 3 equipment numbers, 2 of which has the (C) at the end, but
I can't get a formula to count the C Type more than once (there can be upto 3
of same type in a cell).

Help!

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
Excel 2003 Counting multiple number entries in a single cell watermt Excel Worksheet Functions 9 August 28th 09 09:35 PM
Using SEARCH in a single cell to COUNT multiple entries of sam tcbooks Excel Programming 0 January 15th 09 10:07 PM
How to sort ascending or descending in multiple entries within one single cell? [email protected] Excel Discussion (Misc queries) 3 August 22nd 07 12:56 PM
Count single Text in cells with multiple text entries WSC Excel Discussion (Misc queries) 6 January 9th 07 04:17 PM
Search Column - Find Multiple Entries - Sum Then Delete to Single Entry Ledge Excel Programming 5 June 19th 06 08:25 PM


All times are GMT +1. The time now is 04:14 PM.

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"