+ Reply to Thread
Results 1 to 3 of 3

how to find sum of count of substrings from string array

Hybrid View

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    Jaipur, India
    MS-Off Ver
    Office 2013
    Posts
    1

    how to find sum of count of substrings from string array

    I am struggling to find the sum of the count of appearance of substring in a string array. have attached the image with the problem statement and expected output. Tried using the length and substitute function to solve - did not help with sum but.

    Screenshot (117).png

    (LEN(C2)-LEN(SUBSTITUTE(C2, C4, "")))/LEN(C4)

    Any help is appreciated.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: how to find sum of count of substrings from string array

    Hi and Welcome
    Try this. We prefer you to provide your workbook but I did you s favour and recreated it this time
    It uses this formula but have a look at the attached.

    =SUMPRODUCT(--(ISNUMBER(FIND(G3,$B$3:$B$8))),$C$3:$C$8)
    Attached Files Attached Files
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,277

    Re: how to find sum of count of substrings from string array

    Formula: copy to clipboard
    =SUMIF($B$3:$B$8,"*hello*",$C$3:$C$8


    Formula: copy to clipboard
    =SUMIF($B$3:$B$8,G3,$C$3:$C$8)

    "G3" = *hello*criteria


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. VBA Find Partial String in String Array and Output the Found String Array Value
    By scherich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 11:20 AM
  2. [SOLVED] VBA to Find Multiple Substrings Within a String
    By learning_vba in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-06-2014, 07:35 AM
  3. [SOLVED] VBA substrings in string
    By mikejclark in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-28-2013, 08:36 AM
  4. [SOLVED] Max Value of Array Of Substrings...
    By david.nicholls in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2013, 05:35 AM
  5. Excel 2007 : Finding substrings in a string
    By kkerr in forum Excel General
    Replies: 4
    Last Post: 06-19-2012, 11:57 AM
  6. Substrings from String
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-23-2010, 05:08 PM
  7. Separtaing A String Into Substrings.
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 07-10-2005, 01:27 AM

Tags for this Thread

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