+ Reply to Thread
Results 1 to 4 of 4

Nested IF statement with multiple ISNUMBER(SEARCH) formula

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Nested IF statement with multiple ISNUMBER(SEARCH) formula

    Hi there, I have a spreadsheet with multiple cells containing a list of values "Yes" and "No". To start, I would like to have a formula that calculates a value of 3 if ANY 1 of the cells contains "Yes", otherwise return 1.

    Ultimately, I would also like to SUM the results into 1 cell. NOTE: The value for "Yes" in 1 cell may differ from another cell. (i.e. if A1 contains text "Yes" then result is 4 ADDED TO if B1 OR C1 contains text "Yes" result is 3 else 1).

    I am trying nested IF statements with ISNUMBER(SEARCH) and also combine with OR, but cannot seem to get the right syntax?

    Any assistance would be appreciated.

    Mike

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Nested IF statement with multiple ISNUMBER(SEARCH) formula

    Might be clearest if you post a sample workbook with 5-10 rows of data that also demonstrate your expected results. Highlight those cells where you've manually entered the results and wish to automate. Make sure there is enough rows of data to fully represent all your "variations".

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Nested IF statement with multiple ISNUMBER(SEARCH) formula

    Thanks, however in the meantime I think I figured it out.

    =IF(OR(ISNUMBER(SEARCH("*Yes*",C3)), ISNUMBER(SEARCH)("*Yes*",E3)), ISNUMBER(SEARCH)("*Yes*",I3))),3,1)

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Nested IF statement with multiple ISNUMBER(SEARCH) formula

    You could get the same result by concatenating the cells and using a single SEARCH function, e.g.

    =IF(ISNUMBER(SEARCH("Yes",C3&"-"&E3&"-"&I3)),3,1)
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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