+ Reply to Thread
Results 1 to 7 of 7

How to use LEN, SUBSTITUTE functions?

  1. #1
    Registered User
    Join Date
    04-05-2015
    Location
    Saihat, Saudi Arabia
    MS-Off Ver
    2013
    Posts
    46

    How to use LEN, SUBSTITUTE functions?

    Hi,
    To find the number of times that a certain text appears within a specified range use the following formula:
    =SUM(LEN($B$2:$B$11)-LEN(SUBSTITUTE($B$2:$B$11;D2;"")))/LEN(D2)
    Note: The above formula must be entered as an array formula. To enter a formula as an array formula, press Ctrl+Shift+Enter

    Name:  LEN - SUBSTITUTE Functions.jpg
Views: 1103
Size:  97.0 KB

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: How to use LEN, SUBSTITUTE functions?

    Why not just:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    04-05-2015
    Location
    Saihat, Saudi Arabia
    MS-Off Ver
    2013
    Posts
    46

    Re: How to use LEN, SUBSTITUTE functions?

    Hi,
    The good thing about Excel Functions is that there are many ways to reach one result try this:
    =SUMPRODUCT(--EXACT($B$2:$B$11;D2))
    or
    =SUMPRODUCT(EXACT($B$2:$B$11;D2)*1)

  4. #4
    Registered User
    Join Date
    04-05-2015
    Location
    Saihat, Saudi Arabia
    MS-Off Ver
    2013
    Posts
    46

    Re: How to use LEN, SUBSTITUTE functions?

    Hi,
    Another formula aiming the same result:
    =SUM(IF($B$2:$B$11=D2;1;0))
    or
    =COUNTIF($B$2:$B$11;D2)

    as "zbor" mentioned above.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to use LEN, SUBSTITUTE functions?

    IMA_Daihat, if you are posting tips and suggestions, please post them in that forum. If you have a question to ask, then please ask it

    Thanks
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    04-05-2015
    Location
    Saihat, Saudi Arabia
    MS-Off Ver
    2013
    Posts
    46

    Re: How to use LEN, SUBSTITUTE functions?

    Hi, FDibbins
    I am new to this forum, I do not know the Categories of the forum, now I understand.
    Regards

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to use LEN, SUBSTITUTE functions?

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple SUBSTITUTE Functions in one Cell
    By muddawg19 in forum Excel General
    Replies: 1
    Last Post: 06-04-2014, 10:22 PM
  2. [SOLVED] Combine VLOOKUP and SUBSTITUTE Functions?
    By nobodyukno in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2013, 11:00 AM
  3. Limits of Replace and Substitute functions
    By Deutz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 02:47 AM
  4. How to combine multiple substitute functions?
    By ron_b_michigan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2012, 11:15 AM
  5. Looking for a site with functions that substitute the ATP functions
    By Franz Verga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2006, 11:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1