+ Reply to Thread
Results 1 to 8 of 8

IFERROR + FIND multiple matches

  1. #1
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Angry IFERROR + FIND multiple matches

    Hi,

    I am able to return the numerical value in cell G12, if the cell AZ12 has the text "apple" with the formula below. If apple isn't in that cell, it will be 0.
    =IFERROR(FIND("APPLE",AZ12)*G12,0)

    I want to also return the value in G12 if AZ12 says either "apple", "orange", "banana" etc, but am struggling to do so.
    I have tried:
    =IFERROR(FIND("APPLE",AZ11)*G12,0)*OR(FIND("ORANGE",AZ11)*G12,0)*OR(FIND("BANANA",AZ12)*G12,0)

    Trying to extend this beyond one value returns IF ERROR value.

    Anyone able to help me out?

    Thank you,
    Kanuck

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: IFERROR + FIND multiple matches

    Try

    =IFERROR(IF(MATCH(AZ12,{"Apple","Orange","Banana"},0),G12,0),"")

    entered with Ctrl+Shift+Enter

  3. #3
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: IFERROR + FIND multiple matches

    NAILED IT! It works perfect, thank you so much!
    It works with or without the array, was there a reason I'd use the array specifically?
    Thank you again!

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    1

    Re: IFERROR + FIND multiple matches

    I believe the following should also work based on what you were trying to do.

    =IFERROR(OR(FIND("apple",AZ12),FIND("orange",AZ12),FIND("banana",AZ12))*G12,0)

    You were on the right path. You just had too many OR functions and too many multiplication steps.

  5. #5
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: IFERROR + FIND multiple matches

    hey mfreem02, that one did not actually -- I gave it a go to test it out but it will return the IF ERROR value. I think I may have had that in one of my attempts before coming to all of you as well though

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IFERROR + FIND multiple matches

    Here's another one...

    =IF(OR(AZ12={"Apple","Orange","Banana"}),G12,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    06-15-2016
    Location
    BC
    MS-Off Ver
    excel 2013
    Posts
    52

    Re: IFERROR + FIND multiple matches

    That worked as well Tony, thank you!

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IFERROR + FIND multiple matches

    You're welcome. Thanks for the feedback!

+ 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] Multiple IFERROR or IFERROR w/ If Statements
    By SanchoPanza1 in forum Excel General
    Replies: 4
    Last Post: 03-31-2016, 08:09 PM
  2. [SOLVED] Best way to find multiple matches
    By megantscherer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2015, 08:33 AM
  3. [SOLVED] What formulas can I use to find matches based on multiple criteria
    By Jonathan68 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2014, 02:22 PM
  4. To find if vlookup matches multiple values
    By karthik11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2013, 06:19 AM
  5. Find unique matches for multiple criteria within a row of cells
    By Chase in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2012, 03:11 PM
  6. Replies: 8
    Last Post: 02-15-2012, 05:05 AM
  7. Find the last-row result of multiple matches?
    By goodiein2808 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-08-2011, 11:53 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