+ Reply to Thread
Results 1 to 7 of 7

2 Identical looking text cells that are not EXACT

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    2 Identical looking text cells that are not EXACT

    For a vlookup_value I concatenate a cell and text string. The lookup value becomes "Total ABC", LEN=9. The value from the array is "Total ABC", LEN=9. But comparing these 2 cells, they are not EXACT. How can I find the difference between the two so I can concatenate the correct lookup value?

    Thanks,
    Brad

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 2 Identical looking text cells that are not EXACT

    I suspect that the = is not the same in both cells. Select the = sign from both cells, copy and paste them into vacant cells. Then, use =CHAR(cell reference) on each cell to see if the CHAR returns the same value.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: 2 Identical looking text cells that are not EXACT

    Hi Newdoverman,

    The text values don't have an equal sign. It is simply ... Total ABC.
    Both cells have the same length, LEN=9, so there don't seem to be any hidden spaces.

    Thanks,
    Brad

  4. #4
    Registered User
    Join Date
    01-24-2011
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: 2 Identical looking text cells that are not EXACT

    you might have a formatting issue - in your concatenation source or your array - that prevents the match. Or an extra space at beginning or end of either (array or source). Happens to me plenty.
    < Click the * to say 'thanks'

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 2 Identical looking text cells that are not EXACT

    Select the SPACE instead as there can be many different characters that produce a space. One way to test the SPACE is to copy the space from one of the cells and paste it into the space of the other cell.

    To eliminate the possibility of spaces before or after the texts, use =TRIM(CELL REFERENCE) then compare the two.
    Last edited by newdoverman; 11-07-2013 at 12:44 PM.

  6. #6
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: 2 Identical looking text cells that are not EXACT

    Solved the problem... whatever it was. I copied the <Total > from the array into my concatenate formula. Looked the same to me but oh well.

  7. #7
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: 2 Identical looking text cells that are not EXACT

    Thanks, NDM!

+ 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] Removing Exact Text String from giving Excel Cells - Unexpected Behaviour
    By ghoneim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2013, 08:42 AM
  2. Replies: 6
    Last Post: 03-14-2013, 03:48 PM
  3. [SOLVED] Marcro to delete from cells an identical text?
    By Naja in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2013, 12:40 PM
  4. Replies: 3
    Last Post: 01-02-2013, 10:06 PM
  5. Excel 2007 : Exact Text Matches for multiple cells.
    By Canus in forum Excel General
    Replies: 3
    Last Post: 07-26-2010, 08:55 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