Closed Thread
Results 1 to 2 of 2

Formula not recognizing ' in text string

  1. #1
    Registered User
    Join Date
    01-03-2022
    Location
    Maryland, USA
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    23

    Formula not recognizing ' in text string

    Good morning.

    This post is related to a previous query I asked on this forum. In that query, I needed to take a comma separated list from one column and sort the values from the list into the appropriate columns. I was informed it would be easy to do in Excel 365, so that is what I used. I was given a formula to make the column headers from a list of the possible list values (=IFERROR(@INDEX(test,COLUMNS($D$1:D1)),"")) and then a formula to parse the data (=IF(D$1="","",IFERROR(TEXTJOIN(",",,SUBSTITUTE(FILTERXML("<A><B>"&SUBSTITUTE($B2,",","</B><B>")&"</B></A>","//B[contains(., '"&D$1&"="&"')]"),D$1&"=","")),"")) ). This worked great for most of the data until I realized it did not work for names/text strings that contained a apostrophe or prime symbol ('). The data was extracted from a public database so the data names are not easily modified.

    In the attached file and gave a small easy to understand data set with similar values. You can see that the proper values are not returned for cells E2, G5, and J2; but it works well for the other values.

    How can I modify the formula to recognize and parse strings with this character?

    Thanks in advance.
    Michele
    Attached Files Attached Files

  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,023

    Re: Formula not recognizing ' in text string

    Only one thread per topic is allowed. Thread closed.
    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Recognizing Text
    By kunjanee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2015, 07:50 PM
  2. Replies: 1
    Last Post: 01-29-2015, 02:26 PM
  3. Issue Having Formula Recognizing Numbers Saved As Text As Numbers
    By livifivil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 01:34 PM
  4. [SOLVED] Recognizing text in formula
    By loopiloo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2013, 03:50 PM
  5. Replies: 1
    Last Post: 12-04-2012, 11:57 PM
  6. [SOLVED] Highlight a portion of string text (the string text is a value of a formula)
    By RaymondH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2012, 06:50 AM
  7. recognizing select text out of string
    By Big_Yeti in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 08-27-2007, 03:02 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