# Nested IF statement with multiple ISNUMBER(SEARCH) formula

1. ## 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. ## 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.

3. ## 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. ## 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)

##### Users Browsing this Thread

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

#### 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