+ Reply to Thread
Results 1 to 12 of 12

Pasted values not recognised

  1. #1
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Pasted values not recognised

    Can someone help with this?

    When I copy 2 cells that contain the same word that were generated from a formula and paste them into A1 and A2 and then use =IF(A1=A2,1,"") in A3 it returns blank.
    When I manually type in the same 2 words it is fine.
    What can I do to overcome this?

    Thanks

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    Are you using paste special >>> values?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Pasted values not recognised

    I have just tried paste special and selected values instead of all.
    I also tried all 3 options under values.
    Still no luck.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    I cannot replicate what you are explaining in post #1. There are instructions at the top of the post explaining how to upload a sample workbook.

  5. #5
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Pasted values not recognised

    Ok I'll try.
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    in the sample you posted, A1 and B1 are not the same. A1 has an extra space at the end while B1 does not.
    try this in an empty cell =a1=b1 and it will return false.
    try this in another empty cell =LEN(A1), it will return 9
    then =LEN(B1), it will return 8
    click in A1 and you'll see that the cursor will fall just beyond the end of Croupier d/t a space.
    take care of that space and your formula will return what you want.

  7. #7
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Pasted values not recognised

    Sam I will try what you said.
    How did you see that there was an extra space at the end, I can't see anything.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    click on cell A1 and put your cursor in the fx bar at the end of the word Croupier and you'll see that the bar | will appear just one space beyond the word like this...
    Croupier | space
    while doing that in B1 it will appear like this... Croupier| no space.
    the LEN formulas I gave you will show that there is something different between both cells, that is big hint that something else is there in one of the cells that isn't in the other.

  9. #9
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Pasted values not recognised

    Yes I can see that now in the fx bar and also in your LEN formulas that show 9 and 8.
    As soon as I backspace once A3 returns 1 as I want.
    I have many of these, is there a way of doing a whole column rather than individually?

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    you could incorporate a TRIM function to the formula like this... =IF(TRIM(A1)=B1,1,"")
    if it is in either you can make it like this... =IF(TRIM(A1)=TRIM(B1),1,"")
    if they are all single words w/o spaces you can use find and replace...
    find what >> [hit the space bar or copy the space and paste it here]
    replace with >> [leave blank]
    try once then if you like the results hit replace all and that will take care of it without an adjustment to the formula.
    if you don't like the results just hit undo and maybe try the formula change.

  11. #11
    Registered User
    Join Date
    06-16-2018
    Location
    Manchester, England
    MS-Off Ver
    2016
    Posts
    138

    Re: Pasted values not recognised

    Yes that works.
    Many thanks

  12. #12
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Pasted values not recognised

    You're welcome, AND thank you for the rep!

+ 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] Dates recognised when recording Macro, but not recognised when running it.
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2015, 10:19 AM
  2. [SOLVED] Values in userform not recognised as a numer
    By michelle 1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2013, 07:33 AM
  3. tabs not recognised when data pasted
    By audax in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-31-2009, 09:23 PM
  4. Validation on Pasted Values
    By grey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2009, 12:16 PM
  5. numbers not recognised as values
    By nicko54 in forum Excel General
    Replies: 8
    Last Post: 07-27-2009, 12:38 PM
  6. Replies: 3
    Last Post: 08-11-2006, 09:10 AM
  7. [SOLVED] cell validation even for values pasted into cells-Is there a way to validate values ?
    By JR_06062005 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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