+ Reply to Thread
Results 1 to 3 of 3

IF statement returning TRUE value when looking at text

  1. #1
    Registered User
    Join Date
    01-22-2016
    Location
    Dublin
    MS-Off Ver
    Home and Business 2010
    Posts
    1

    IF statement returning TRUE value when looking at text

    Hello,

    I am using an IF statement to look at a cell and determine if the cell is < than a defined number then return either "Yes" or "No" depending on the value in the cell. It is a very simple formula but the trouble I am having is that when the cell being examined contains a text value I want the IF statement to look at the cell, see that it is text and return "No". I've never had issues with this before but I think I may have changed a setting because now the IF statement looks at the cell sees that it contains text and returns a positive result.

    Sorry if my explanation above is not clear but any help that people can provide with regard to getting my excel workbook back to its normal helpful self would be very useful.

    Many thanks

    Oisin

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

    Re: IF statement returning TRUE value when looking at text

    =IF(COUNT(A1:B1)=2,IF(A1<B1,"Yes","No"),"No")
    or
    =IF(COUNT(A1),IF(A1<7,"Yes","No"),"No")
    Last edited by samba_ravi; 01-22-2016 at 06:46 AM.
    Samba

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

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: IF statement returning TRUE value when looking at text

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

+ 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] Comparing Multiple columns across worksheets and returning a True/False statement
    By RoryK in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-11-2015, 10:33 PM
  2. [SOLVED] If Statement that displays a text from a cell if True
    By NZL_Truly in forum Excel General
    Replies: 1
    Last Post: 02-17-2015, 03:17 AM
  3. Replies: 3
    Last Post: 11-06-2014, 01:00 PM
  4. [SOLVED] cellcolor within formula not returning true statement
    By damo_uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2013, 10:20 AM
  5. [SOLVED] If Statement or Macro to add a * at End of Text if Something is True
    By JohnMaier in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-01-2013, 09:42 AM
  6. Replies: 9
    Last Post: 01-21-2013, 01:54 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