+ Reply to Thread
Results 1 to 5 of 5

Excel "IF" formula that contains both word and number criteria

  1. #1
    Registered User
    Join Date
    06-03-2014
    Posts
    7

    Excel "IF" formula that contains both word and number criteria

    Hi there,

    I'm new to the forum and looking for some help in relation a formula I am having a bit of difficulty with; the purpose of the formula is two separate things - The first part determines whether or not the inputted number is within parameters, the second searches for a specific word to determine whether or not the the test is applicable. I currently receive an #value! error.

    My attempt:

    =IF(AND(E67<1.26,E67>0.74),"Pass","Fail"),IF(COUNT(SEARCH({"Chocolate","Biscuit"},E7)),"N/A","")

    Any help would be greatly appreciated.

    * The first part of the formula works fine by itself.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Excel "IF" formula that contains both word and number criteria

    How about the following?

    =IF(COUNT(SEARCH({"Chocolate","Biscuit"},E7)),"N/A",IF(AND(E67<1.26,E67>0.74),"Pass","Fail"))

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Excel "IF" formula that contains both word and number criteria

    The first part of the formula works fine by itself.
    Yes, it will. It is a self contained IF function with a condition and a True and a False outcome. Similarly, the second function.

    If you want two independent answers in one cell, you could try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-03-2014
    Posts
    7

    Re: Excel "IF" formula that contains both word and number criteria

    That Does work yes, however I would also like to add another piece of text:

    Chocolate - Returns nothing (I'd like a blank cell)
    Biscuit - Returns nothing (I'd like a blank cell)
    Tea - Returns "N/A"

    However, now the part that returns the pass / fail based on the parameters does not work

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Excel "IF" formula that contains both word and number criteria

    That Does work yes
    What works? You've had two solutions offered. What does your formula look like now?

    Regards, TMS

+ 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. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  2. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  3. [SOLVED] formula sumproduct with criteria any letter at "end" of a number
    By nd4spd in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2013, 08:46 AM
  4. [SOLVED] How to Count number of "Error" and "OK" after the word "Instrument" found in table row
    By eltonlaw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 06:26 AM
  5. [SOLVED] Formulae or format to change a number "1" into the word "one
    By Excel Help in forum Excel General
    Replies: 1
    Last Post: 05-30-2006, 11:30 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