+ Reply to Thread
Results 1 to 3 of 3

Compare value / text of a cell

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Compare value / text of a cell

    Hello,

    I am using the following code:

    Please Login or Register  to view this content.
    This works fine as long as cell A1 does not contain a string longer than 256 characters.
    Is there a workaround?
    I can not split the cell - it would make it very cumbersome.
    Could you please advise?

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Compare value / text of a cell

    Have a read of this;

    https://support.microsoft.com/en-us/...rs=en-us&ad=us

    They are saying for long strings use CONCATENATE or & to break up the long string. I've never tried it/tested it though.

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Compare value / text of a cell

    OK, I got this..., using the:
    Please Login or Register  to view this content.
    CODE] If StrComp(str1, str2, vbBinaryCompare) = 0 Then
    Please Login or Register  to view this content.
    Thanks

+ 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] Compare a text cell with a numeric cell and output a text string
    By ids in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2014, 07:39 AM
  2. Replies: 5
    Last Post: 01-06-2014, 05:33 AM
  3. [SOLVED] Compare multi-line text cell to data in much larger text file
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2013, 05:19 PM
  4. Replies: 6
    Last Post: 02-28-2013, 11:27 AM
  5. Replies: 2
    Last Post: 01-30-2013, 12:59 PM
  6. How to compare text in excel cell with value in any cell of another COLUMN
    By alpesh27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2012, 07:24 AM
  7. Compare text in a cell with the text in the previous cell and return a value
    By kinley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2010, 04:14 AM
  8. Compare cell text to set list and show text differences
    By NSTurk725 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-06-2009, 09:54 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