+ Reply to Thread
Results 1 to 3 of 3

Existing working formula processes multiple words in cell, I need single word in cell.

  1. #1
    Registered User
    Join Date
    10-11-2004
    Posts
    8

    Existing working formula processes multiple words in cell, I need single word in cell.

    Hi,

    Can someone pls help.

    I have the following formula:

    =IF(SUMPRODUCT((LEN(" "&SUBSTITUTE(SUBSTITUTE(J5,","," "),"."," ")&" ")-LEN(SUBSTITUTE(" "&SUBSTITUTE(SUBSTITUTE(J5,","," "),"."," ")&" "," "&SQR_Conversions!$B$2:$B$2418&" ","")))/LEN(" "&SQR_Conversions!$B$2:$B$2418&" "))=0,"",SUMPRODUCT((LEN(" "&SUBSTITUTE(SUBSTITUTE(J5,","," "),"."," ")&" ")-LEN(SUBSTITUTE(" "&SUBSTITUTE(SUBSTITUTE(J5,","," "),"."," ")&" "," "&SQR_Conversions!$B$2:$B$2418&" ","")))/LEN(" "&SQR_Conversions!$B$2:$B$2418&" ")))

    This works well and does it's job when parsing multiple words in a cell: i.e.

    Here are a few words

    I need the above formula modified to work on a single single word: i.e.

    singleword

    I suspect its a change to the syntax, tried but no joy: &SUBSTITUTE(SUBSTITUTE(J5,","," "),"."," ")&" ")

    Really appreciate any pointers.

    Rgds

    Marcus

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Existing working formula processes multiple words in cell, I need single word in cell.

    Hi,

    Yuo could just wrap it in an

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-11-2004
    Posts
    8

    Re: Existing working formula processes multiple words in cell, I need single word in cell.

    Hi Richard,

    Thanks for your speedy post. That worked but not with the rest of the formula, it didn't return desired output. See image attached.

    excel_forum.PNG

    Code in C1:

    =SUMPRODUCT((LEN(" "&SUBSTITUTE(SUBSTITUTE($A$2:$A$7,","," "),"."," ")&" ")-LEN(SUBSTITUTE(" "&SUBSTITUTE(SUBSTITUTE($A$2:$A$7,","," "),"."," ")&" "," "&B2&" ","")))/LEN(" "&B2&" "))

+ 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. Search multiple words in a single cell
    By ruissu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2016, 10:40 AM
  2. Search multiple words in a single cell
    By ruissu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2016, 10:38 AM
  3. autocomplete/formula to enter multiple values (words) in single cell.
    By ap556 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-07-2015, 05:28 AM
  4. Finding a Single name in Cell in a Cell with Multiple Names (words)
    By perm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2014, 12:29 AM
  5. Formula to recognise one word from multiple words in the same cell
    By JLucy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2013, 11:48 AM
  6. Replies: 5
    Last Post: 01-10-2013, 09:51 AM
  7. [SOLVED] Find and return a word, in a list of words, that is in a single cell.
    By nicholas.jacka in forum Excel General
    Replies: 2
    Last Post: 03-07-2012, 05:13 AM

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