+ Reply to Thread
Results 1 to 10 of 10

MATCH / INDEX partial text in a single column

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    72

    MATCH / INDEX partial text in a single column

    Hello,

    I have a list of data in column A, from row 3 down hundreds of rows. I want to have a formula in A1 which looks for the three left characters to match the text "ABC". If the value is found then I would like to display the value of the whole cell ("ABCDEF" for example). I have been trying to get MATCH to work but seem to be falling over with incorporating the use of LEFT as well.

    Thanks in advance,

    JM

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: MATCH / INDEX partial text in a single column

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    My concern is that you are returning a single result in A1 but this will work

  3. #3
    Registered User
    Join Date
    04-19-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    72

    Re: MATCH / INDEX partial text in a single column

    Thanks for that - it works great when the value is present but is returning #N/A when not. Would you recommend putting an IF around it to deal with that or is there a more elegant solution ?!

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: MATCH / INDEX partial text in a single column

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by PFDave; 04-26-2017 at 09:02 AM.

  5. #5
    Registered User
    Join Date
    04-19-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    72

    Re: MATCH / INDEX partial text in a single column

    Thank you for the quick reply. - I am now getting a #NAME? error. - That of course is highlighting an error in formula which I don't see.

    Sorry for this.....

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: MATCH / INDEX partial text in a single column

    No need to apologise, could you upload a sample workbook with the error as I don't get an issue on my side using =IFNA(INDEX($A$3:$A$32,MATCH("abc*",$A$3:$A$32,0)),"value if n/a")

  7. #7
    Registered User
    Join Date
    04-19-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    72

    Re: MATCH / INDEX partial text in a single column

    I attach a basic sheet using your code. Ideally I want to just return "" / nothing if the value is not found.

    Thanks a lot.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: MATCH / INDEX partial text in a single column

    try:

    =IFERROR(INDEX($A$3:$A$32,MATCH("abc*",$A$3:$A$32,0)),"")

    I assume you're using an older version of excel which doesn't support IFNA

  9. #9
    Registered User
    Join Date
    04-19-2017
    Location
    London, England
    MS-Off Ver
    Office 2010
    Posts
    72

    Re: MATCH / INDEX partial text in a single column

    Perfect - thanks !

    I am a dinosaur on Excel 2011.... A few of my old macros don't play nicely with the new versions of Office.

    Much appreciated

  10. #10
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: MATCH / INDEX partial text in a single column

    You're Welcome Miller, feel free to add to rep if you think I deserve it

+ 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. finding partial text in an index match formula
    By garyaw in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-30-2015, 04:27 PM
  2. Index match partial text in cell
    By ymcata in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2015, 05:45 AM
  3. Match partial text and to fill other column
    By henk400 in forum Excel General
    Replies: 1
    Last Post: 03-19-2015, 04:17 AM
  4. [SOLVED] Find the row number with a partial match to text in column A
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-10-2014, 01:39 PM
  5. Return any values from partial text in single reference column
    By baba_jb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2013, 01:03 AM
  6. Match partial cells in a single EXCEL column?
    By kpratico in forum Excel General
    Replies: 7
    Last Post: 06-05-2012, 03:21 PM
  7. Index Match nesting w/ partial text string criteria
    By dohearn in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 03:42 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