+ Reply to Thread
Results 1 to 7 of 7

Basic equal and not equal not working?

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Basic equal and not equal not working?

    Two sheets in my very small (2010)workbook grab values from separate workbooks.
    (The outputs of 2 separate databases)
    My main sheet is simply used to align the separate data and check for errors.

    Several columns are compared with a simple conditional formatting =$B1<>$P1 or =$B1=$P1
    Works for the most part, but about 1 out of 10 are conditionally formatted in error.
    Copy/pasting the values directly into notepad reveals that they are identical
    For example,
    TSG
    TSG
    no spaces to consider (since the other sheet draws the data with a TRIM(A1) )

    cells being compared are formatted as text or general - no difference.

    if this was the entire column I would stick with it, but just randomly not working?
    strikes me as a bug.
    Any ideas? This is a main reason why I built this comparative workbook.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Basic equal and not equal not working?

    check the length of the "identical" strings using =LEN(A1). Are thet the same (and = 3)?

    If the result is not as you'd expect, the chances are you have one or more non-breaking spaces there. Try:

    =SUBSTITUTE(A1,CHAR(160),"")

    and check it's length again. Then report back!!
    Last edited by Glenn Kennedy; 02-18-2015 at 08:38 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-03-2012
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Basic equal and not equal not working?

    ug. Thanks for the suggestion.
    Just did the LEN() for two columns and got matching numbers
    Only reinforced with SUBSTITUTE()

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Basic equal and not equal not working?

    and they're the right length, too?

    Can you post a sample of your sheet so that we can take a look?

  5. #5
    Registered User
    Join Date
    12-03-2012
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Basic equal and not equal not working?

    OK, I deleted all but the offending columns - (to make a sample)
    (Obviously had to rewrite the conditional formatting)
    Problem vanishes.
    Ug
    I will try to find the point of error and get back to you.

  6. #6
    Registered User
    Join Date
    12-03-2012
    Location
    Syracuse, NY
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Basic equal and not equal not working?

    Thanks for the help. Problem found.
    My conditional formatting "Applies to" area was done by row =$B:$B and my equation did not use B1, but rather B4.
    O_o

    "Is the computer plugged in?"

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: Basic equal and not equal not working?

    It's just not your day, is it??

+ 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. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 PM
  2. [SOLVED] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  3. Scoresheet with Equal Ranks - need to identify equal placings separately
    By Caroleh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 02:59 AM
  4. When is equal not equal? Answer: In 2010
    By natefarm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 06:21 PM
  5. lower and upper case equal on spreadsheet but not equal in VB
    By don in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2005, 09:06 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