+ Reply to Thread
Results 1 to 7 of 7

Combine IF THEN Function with ISNUMBER SEARCH?

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    Detroit
    MS-Off Ver
    Excel 2010
    Posts
    2

    Unhappy Combine IF THEN Function with ISNUMBER SEARCH?

    Hi everyone,

    I'm having trouble coming up with a formula to evaluate this two part statement:

    If A3 contains the words "apple" or "orange", then E3=[Today()-(D3+365)];
    if A3 does not contain "apple" or "orange", then E3={Today()-[D3-(3*365)]}


    What I have so far is: E3=IF({Isnumber{search[("apple","orange"),A3]}},[Today()-(D3+365)],{Today()-[D3+(3*365)]})

    A3 is independent of the formula, and will contain a number that may or may not be denoted by the words "apple" or "orange'.
    D3 is a date that will be changed occasionally.

    Do you have an idea of how to approach this?
    Last edited by alexa_raye; 03-26-2014 at 11:26 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    maybe:
    =IF(SUM(--ISNUMBER(SEARCH({"apple","orange"},A3,1))),TODAY()-D3+365,TODAY()-D3-3*365)
    Last edited by ragulduy; 03-26-2014 at 11:45 AM.

  3. #3
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    E3:
    Please Login or Register  to view this content.
    Click on the star if you think I helped you

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    maybe this one

    =IF(OR(A3={"Apple","Orange"}),TODAY()-(D3+365),TODAY()-(D3-(3*365)))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    Try:
    =TODAY()-D3+IF(AND(A3<>"apple",A3<>"orange"),3*365,-365)
    Quang PT

  6. #6
    Registered User
    Join Date
    03-26-2014
    Location
    Detroit
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    It works perfectly!

    Thank you

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Combine IF THEN Function with ISNUMBER SEARCH?

    @adyteo/AlKey/beob

    I think the OP request was for if it contained Apple or Orange - I think it will be a number and then apple/orange...

    Edit: maybe not, ha.

+ 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] IF(ISNUMBER(SEARCH function
    By NickT83 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-16-2014, 10:18 AM
  2. Help with multiple If(Isnumber(Search( function
    By khk410 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 09:07 AM
  3. [SOLVED] how to have multiple ISNUMBER search function in SUMPRODUCT
    By melvyndb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2012, 09:34 PM
  4. ISNUMBER(SEARCH Function
    By somesoldiers in forum Excel General
    Replies: 2
    Last Post: 07-14-2009, 10:49 AM
  5. SUMPRODUCT((ISNUMBER(SEARCH() function
    By redneck joe in forum Excel General
    Replies: 13
    Last Post: 12-08-2006, 06:19 PM

Tags for this Thread

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