+ Reply to Thread
Results 1 to 4 of 4

How to match text exactly and carry with * on the end of the text.

  1. #1
    Registered User
    Join Date
    07-15-2020
    Location
    united kingdom,England
    MS-Off Ver
    2019
    Posts
    13

    How to match text exactly and carry with * on the end of the text.

    Hi all,

    I need help on this solve this problem

    Excel Prob.png

    My function was like this :

    =IFERROR(IF(MATCH($A2,$B$2:$B$11,0),"O"),"X")

    below is the Data and I need data column A can be found in the column B even it not in the same row

    Column A Column B
    MIQ* MIA
    MI* MIQA
    MIA* MII*
    MIAR* DELEUM*
    MAGNI* MAGNI*
    YOCB YOCB
    LII* LIIHEN*
    FIAMMA* FIAMMA*
    DMINAN* HOMERIZ
    HOMERIZ DOMIAN*

    Please somebody help me.

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,716

    Re: How to match text exactly and carry with * on the end of the text.

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to match text exactly and carry with * on the end of the text.

    An attachment would be much better, but if the * are always at the end, this is in inelegant solution hopefully

    =IFERROR(IF(MATCH(IF(RIGHT(A2)="*",LEFT(A2,LEN(A2)-1)&"~*",A2),B2:B11,0),"O"),"X")

    or

    =IFERROR(IF(MATCH(LEFT(A2,LEN(A2)-1)&"~"&RIGHT(A2,1),B2:B4,0),"O"),"X")
    Last edited by davsth; 07-15-2020 at 04:17 AM.

  4. #4
    Registered User
    Join Date
    07-15-2020
    Location
    united kingdom,England
    MS-Off Ver
    2019
    Posts
    13

    Re: How to match text exactly and carry with * on the end of the text.

    It works.. Thanks a lot davsth..

+ 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. Replies: 6
    Last Post: 05-31-2019, 12:39 AM
  2. [SOLVED] Need a formula to carry over text from tab to tab
    By weaverswonders6 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2019, 10:23 AM
  3. Replies: 2
    Last Post: 05-27-2016, 12:30 AM
  4. [SOLVED] How to get Merge cells with wrap text to carry over with HTML to outlook
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2014, 09:35 PM
  5. [SOLVED] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  6. Compare two excel and mismatch text should be display in red color and match text in green
    By aadityapatel1984 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2014, 04:22 PM
  7. Replies: 4
    Last Post: 04-02-2012, 07:37 AM

Tags for this Thread

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