+ Reply to Thread
Results 1 to 6 of 6

Comparing cells (numbers only) & returned TRUE/FALSE

  1. #1
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Comparing cells (numbers only) & returned TRUE/FALSE

    Hi All,

    I need to compare 2 cells with numbers & return the result as TRUE or FALSE.
    I have tried ISERROR & EXACT function but the input not returning TRUE because
    one of the source have space (refer attached book)

    FYI, the number scanned from a barcode which by default have space in it.

    Thank you in advance :-)
    Attached Files Attached Files

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

    Re: Comparing cells (numbers only) & returned TRUE/FALSE

    Use TRIM function to eliminate space in both cells

    =NOT(ISERROR(SEARCH(TRIM(A2),TRIM(B2))))
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Comparing cells (numbers only) & returned TRUE/FALSE

    Hi bebo021999,

    The formula OK but sorry i forgotten to include that there's same
    input in SOURCE2 doesn't have special characters like %,@ & etc.

    So i need formula to compare just numbers & alphabet only

    Refer attached file
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Comparing cells (numbers only) & returned TRUE/FALSE

    Assuming that the cell that should contain the formula is C8 and that the result should be TRUE, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: Comparing cells (numbers only) & returned TRUE/FALSE

    Thank you JeteMC, good solution

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,546

    Re: Comparing cells (numbers only) & returned TRUE/FALSE

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 6
    Last Post: 10-09-2018, 01:11 PM
  2. IFERROR: How to tell if value returned from true or false
    By trishtrang in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2017, 05:05 PM
  3. [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
  4. Replies: 4
    Last Post: 10-01-2014, 04:27 PM
  5. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  6. [SOLVED] A check for comparing two pieces of data, true/false
    By MushroomFace in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-30-2013, 08:28 PM
  7. Replies: 3
    Last Post: 02-11-2012, 03:07 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