+ Reply to Thread
Results 1 to 3 of 3

Thread: Matching Cell to Cell

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    1

    Matching Cell to Cell

    I'm trying to match cells by cell using the IF function. For some reason the top example in the spreadsheet is not matching, while the bottom example is matching. I removed all the formatting and made sure the AM and PM's match, but for some reason it is still showing up as not matching. Can anyone explain?
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Matching Cell to Cell

    Where did you copy these values from? They are formatted to APPEAR as time values, but under the hood they are still nothing more than long decimals. Set the format to GENERAL and expand the decimal places and you'll see the variances.

    In terms of time, both of these values display as 5:25 PM

    A2: 0.725694444444444
    B2: 0.725694444444445

    That's a difference of literally milliseconds in time, but they still aren't the same value. That's why i asked where they are coming from? If you manually enter 5:25 PM into two cells, the same value is entered. But that's not the case with this data.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Matching Cell to Cell

    Hi the top two sets of numbers are not in fact the same. They differ at the 15th decimal place. i.e.


    A1: 0.711805555555556
    B1: 0.711805555555555

    ditto A2 & B2

    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

+ 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.2.0