+ Reply to Thread
Results 1 to 9 of 9

Excel saying cells not equal but they are...

  1. #1
    Registered User
    Join Date
    01-30-2008
    Posts
    5

    Excel saying cells not equal but they are...

    I have a problem with a large excel file where I am doing an if statement like

    =IF(B2=C2, "Pass", "FAIL")

    Both B2 and C2 appear to have the same values but excel returns FAIL. I can fix this, but it is very manual. Excel recognizes the values as equal after I click in cell B2 and press enter. I am trying to figure out a way to do this for thousands of records without having to click in each cell and press enter. Any advice?

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    is auto calculate turned on?

  3. #3
    Registered User
    Join Date
    01-30-2008
    Posts
    5
    Under Tools -> Options -> Calculation Tab...Automatic is checked off

    This issue does seem to be with the calculation, it seems to be that the information in column B is not fully entered into the cell. Almost as if the data appears in the cell but it is not recognized as data.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    that needs to be on. then click calculate now

  5. #5
    Registered User
    Join Date
    01-30-2008
    Posts
    5
    I have tried Calc Now and Calc Sheet and nothing changes

    see attached sample
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-30-2008
    Posts
    5
    Column A is the problem in the sample (not column B as previously mentioned)

  7. #7
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi gluis20,

    The problem is that your column A entries are Text (excel isn't seeing them as a day/time value -- notice they are aligned to the left), while column B entries are in fact Date/Time values (notice they are aligned to the right).

    To get the entire column A converted quickly, select all of the values, e.g. A2:A100, then click Data -> Text To Columns... -> click Finish (don't change any settings or click Next).

  8. #8
    Registered User
    Join Date
    01-30-2008
    Posts
    5
    Awesome! That did the trick!

    Thanks Paul

  9. #9
    Registered User
    Join Date
    04-22-2015
    Location
    Paris
    MS-Off Ver
    excel 2013
    Posts
    1

    Re: Excel saying cells not equal but they are...

    great it works with excel 2013! thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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