+ Reply to Thread
Results 1 to 5 of 5

Help joining an if statement with a search statement

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    12

    Help joining an if statement with a search statement

    Hello,



    I need help joining the following scenarios:



    If J4 in the "Offer Def File" page is blank, and L4 in the "Offer Def File" page reads "one-time", search for the number 1 in cell S5 of the active page. Return True or False.



    Thank you in advance for your help.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Help joining an if statement with a search statement

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-28-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help joining an if statement with a search statement

    Hello Olly,

    Thank you so much for your help. This worked.

  4. #4
    Registered User
    Join Date
    02-28-2014
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Help joining an if statement with a search statement

    Hello,

    I have an addition to the above formula. I am hoping you can help.

    The final formula string looks like this:
    =OR(AND(ISNUMBER(SEARCH("CE",Q5)),ISNUMBER(SEARCH("CENTSOFF",'Offer Def File'!R4))),
    AND(ISNUMBER(SEARCH("PE",Q5)),ISNUMBER(SEARCH("PERCENTOFF",'Offer Def File'!R4))),
    AND(ISNUMBER(SEARCH("NE",Q5)),ISNUMBER(SEARCH("PRICEPOINT",'Offer Def File'!R4))),
    AND(ISNUMBER(SEARCH("NW",Q5)),ISNUMBER(SEARCH("NETWEIGHT",'Offer Def File'!R4))))

    For IF Q5=PE, there are two options under R4. PE can equal to "Percent OFF" or "FREE".

    How do I add "Free" to the "SEARCH" in R4 for the below scenario:
    AND(ISNUMBER(SEARCH("NE",Q5)),ISNUMBER(SEARCH("PRICEPOINT",'Offer Def File'!R4))),

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Help joining an if statement with a search statement

    Add another OR statement, nested within the AND:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Joining Round Function with If Statement
    By bgates in forum Excel General
    Replies: 2
    Last Post: 12-11-2013, 10:08 AM
  2. [SOLVED] Nested IF and Search Statement Help
    By gautamacharya in forum Excel General
    Replies: 2
    Last Post: 06-19-2012, 02:24 PM
  3. IF statement and SEARCH
    By maymano in forum Excel General
    Replies: 4
    Last Post: 07-06-2011, 01:41 PM
  4. Search in an IF statement
    By Demon4231 in forum Excel General
    Replies: 3
    Last Post: 04-29-2011, 04:20 AM
  5. search statement
    By boylejob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2007, 08:09 PM

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