+ Reply to Thread
Results 1 to 9 of 9

IF Find Formula with Multiple Condition

  1. #1
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    IF Find Formula with Multiple Condition

    Hi friends

    I have attached the example worksheet. I want to find the specific text from a cell and if that's true, it should return the store name as mentioned in the formula. For some reason, it only works with first condition.

    Thanks for your time and support.
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: IF Find Formula with Multiple Condition

    Try changing the formula to this;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,349

    Re: IF Find Formula with Multiple Condition

    The first IF statement throws up a #VALUE error in A3, and Excel can't get past that, so you would have to use IFERROR around each IF statement and concatenate the results with &.

    Or you could use this:

    =LOOKUP(LEFT(B2,FIND(" ",B2)-1),{"D&G","Gucci"},{"D&G","Gucci"})

    Make sure the lookup array is in alphabetical order.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF Find Formula with Multiple Condition

    or:

    =IFERROR(LOOKUP(1000,SEARCH({"Gucci","D&G"},B2),{"Gucci","D&G"}),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: IF Find Formula with Multiple Condition

    Thanks a lot all..It works perfect..

  6. #6
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: IF Find Formula with Multiple Condition

    Thanks Glen....What does "1000" refers to in above Lookup formula?

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: IF Find Formula with Multiple Condition

    or
    =INDEX({"D&G","Gucci"},MATCH(1,COUNTIF(B2,{"D&G","Gucci"}&" *"),0))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: IF Find Formula with Multiple Condition

    Hi. Firstly, thanks for the rep. 1000 is an (arbitrary) large number. SEARCH returns the position in the string of the first letter of Gucci (if present) or D&G (if present). Otherwise it returns an error. So, in your example it will return a 1 if Guccis is present. Lookup then looks for an exact match for 1000. there isn't one. If the LOOKUP function can not find an exact match, it chooses the largest value in the lookup range that is less than or equal to the value of 1000.

  9. #9
    Forum Contributor
    Join Date
    07-18-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    192

    Re: IF Find Formula with Multiple Condition

    That makes sense now to me..Thanks again for your explanation...

+ 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. Multiple Condition Index match to find max row value
    By Sc0tt1e in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-26-2016, 12:50 PM
  2. find multiple value while same condition
    By kisanvikas2015 in forum Excel General
    Replies: 1
    Last Post: 04-24-2015, 08:44 AM
  3. [SOLVED] Need a formula to find and substitute a word in a text if a condition is met...
    By danielneedssomehelp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2014, 01:34 PM
  4. Replies: 5
    Last Post: 08-06-2014, 12:22 PM
  5. How to use find or search formula mutiple condition?
    By Akatecho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2014, 09:26 AM
  6. [SOLVED] Array Formula to find an offset value based on a certain condition.
    By montehoskey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2014, 10:54 PM
  7. [SOLVED] Formula to find out MAX and MIN based on 3rd cell condition
    By helpbitte in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2013, 05:31 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