Return the number of occurrences of a substring in B1 within a string in A1 : LEN « Text functions « Microsoft Office Excel 2007 Tutorial

Home
Microsoft Office Excel 2007 Tutorial
1.Introduction
2.Editing
3.Format Style
4.Table
5.Chart
6.Formula
7.Workbook Worksheet
8.Wordart Clip Art Shape Picture
9.PivotTable PivotChart
10.Data Analysis
11.Macro ActiveX Add in
12.Security
13.Collaboration
14.Database functions
15.Date Time functions
16.Engineering functions
17.Information functions
18.Logical functions
19.Lookup Reference functions
20.Math Trigonometry functions
21.Statistical functions
22.Text functions
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Microsoft Office Excel 2007 Tutorial » Text functions » LEN 
22.12.5.Return the number of occurrences of a substring in B1 within a string in A1
Input the formula: =(LEN(A1)-LEN(SUBSTITUTE(A1,B1,"")))/LEN(B1)
Input the formula: =(LEN(A1)-LEN(SUBSTITUTE
22.12.LEN
22.12.1.LEN(text), LENB(text) returns the number of characters in a textLEN(text), LENB(text) returns the number of characters in a text
22.12.2.=LENB("ABC")=LENB(
22.12.3.Count the number of Bs (uppercase only) in the stringCount the number of Bs (uppercase only) in the string
22.12.4.Count the number of Bs (both upperand lowercase) in the stringCount the number of Bs (both upperand lowercase) in the string
22.12.5.Return the number of occurrences of a substring in B1 within a string in A1Return the number of occurrences of a substring in B1 within a string in A1
22.12.6.A case-insensitive comparison: Return the number of occurrences of a substring in B1 within a string in A1A case-insensitive comparison: Return the number of occurrences of a substring in B1 within a string in A1
22.12.7.Returns the first nine characters plus an ellipsis for longer stringReturns the first nine characters plus an ellipsis for longer string
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.