Excel Magic Trick 290: Count Codes From Column of Text Strings

3,880 views · Published 16 March 2009 · 6:11 · Indexed 10 November 2026

Channel: excelisfun · 2009 · Science & Technology

Watch on YouTube

Download Excel Start File: https://people.highline.edu/mgirvin/YouTubeExcelIsFun/EMT285-294.xls
Download Excel Finished File: https://people.highline.edu/mgirvin/YouTubeExcelIsFun/EMT285-294Finished.xls
Full Page With All File Links: https://people.highline.edu/mgirvin/excelisfun.htm

See how to count codes from a column of text strings that hah multiple codes. For example: If we are counting PCP in this list: {"PCP, TP, N, N, PA";"N, N, PA";"PCP, N, PA";"TP, N, NP"} we would want to get 2.
See a formula that counts that uses the SUMPRODUCT, LEN and SUBSTITUTE functions.
LEN & SUBSTITUTE functions Counting Tricks

More from this channel