+ Reply to Thread
Results 1 to 5 of 5

Nested Search Formula

Hybrid View

xXHeisenbergXx Nested Search Formula 09-03-2014, 11:34 PM
boopathiraja Re: Nested Search Formula 09-03-2014, 11:39 PM
xXHeisenbergXx Re: Nested Search Formula 09-03-2014, 11:50 PM
xXHeisenbergXx Re: Nested Search Formula 09-04-2014, 01:29 AM
protonLeah Re: Nested Search Formula 09-04-2014, 01:30 AM
  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Nested Search Formula

    I am trying to use the following formula

    =LEFT(J16,SEARCH(",", J16) - 1) ---<where j16 contains the data>
    To turn

    'Application,Cost,Timeliness'

    into

    'Application'

    My issue is if the the cell contains no commas "," then the formula doesn't work. How do I get it to check for commas first and if it contains them, apply the formula, if it doesn't, leave as is?

    EDIT: It needs to be dynamic and not restricted to particular words.

    So if the cell contains 'Application' - produce 'Application'.
    If it contains 'Cost, Application' - produce 'Cost'
    If it contains 'Timeliness, Cost, Application' - produce 'Timeliness'.

    etc


    Thanks
    Last edited by xXHeisenbergXx; 09-03-2014 at 11:49 PM.

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Nested Search Formula

    Hi, Welcome to the forum

    Try with the below

    Formula: copy to clipboard
    =CONCATENATE("'",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(J16,",",""),"CostTimeliness",""),"'",""))
    Click just below left if it helps, Boo?ath?

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Nested Search Formula

    Thanks for your feedback.

    I just clarified my original post.

    It can't be restricted to certain words.

    Thanks,

  4. #4
    Registered User
    Join Date
    09-03-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Nested Search Formula

    Never mind guys....solved it.

    =IFERROR(LEFT(J16,SEARCH(",", J16) - 1),J16)

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,927

    Re: Nested Search Formula

    =if(iserror(find(",",j16)),j16,left(j16,find(",",j16)-1))
    Ben Van Johnson

+ 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. [SOLVED] Nested IF AND SEARCH formula not working
    By dcdeez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2013, 06:40 AM
  2. Nested IF statement with multiple ISNUMBER(SEARCH) formula
    By mlester in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2013, 12:40 PM
  3. Nested SEARCH or FIND formula query
    By SAsplin in forum Excel General
    Replies: 7
    Last Post: 07-15-2011, 06:00 AM
  4. Excel 2007 : Nested Search Formula
    By Broken85 in forum Excel General
    Replies: 6
    Last Post: 02-07-2011, 01:32 PM
  5. Nested IF(SEARCH)
    By scmllc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2008, 12:42 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