+ Reply to Thread
Results 1 to 10 of 10

Help with this text identification formula

  1. #1
    Registered User
    Join Date
    12-07-2020
    Location
    Suffolk
    MS-Off Ver
    Office 365
    Posts
    5

    Help with this text identification formula

    I'm working on a simple text identification project.

    Currently, the formula is

    =IF(H11="N/A","",IF(H11="",IFERROR(INDEX({" M1"," M2"," M3"," M4"," M5"," M6"," M8"," M10"," M12"," M16"," M20"," M24"," M30","Screw","BSW","Bolt","Nut","Washer","Head","Countersunk"},MATCH(TRUE,ISNUMBER(SEARCH({" M1"," M2"," M3"," M4"," M5"," M6"," M8"," M10"," M12"," M16"," M20"," M24"," M30","Screw","BSW","Bolt","Nut","Washer","Head","Countersunk"},A11)),0)),""),H11))

    As you can see there is a lot of text,

    Is there any way to remove the text and replace it with just a cell value which has that text written in it. This is so I can make an adjustment to the text parameters easier.

    I've tried using an indirect function but this doesn't seem to work.

    Thanks

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

    Re: Help with this text identification formula

    Yes there is. Please post an Excel sheet with your data present. See yellow banner (top of page) for guidance.
    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

  3. #3
    Registered User
    Join Date
    12-07-2020
    Location
    Suffolk
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Help with this text identification formula

    Hi

    I have attached the basic document,

    the long text join within building blocks sheet is where I want to take my text value from.

    Thanks
    Attached Files Attached Files

  4. #4
    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,055

    Re: Help with this text identification formula

    In B10, copied down:
    =IFERROR(IF(C10="N/A","",IF(C10="",LOOKUP(1000,SEARCH('Building Blocks'!$A$4:$A$23,A10),'Building Blocks'!$A$4:$A$23),C10)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-07-2020
    Location
    Suffolk
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Help with this text identification formula

    Hi,

    Is there a way to add the function so if the list increases in size it can automatically adapt the code, maybe via an indirect and count function?

    Other than that is works great, thanks

  6. #6
    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,055

    Re: Help with this text identification formula

    I had to delete some rubbish around row 40 in column A, below your current list.

    ='Building Blocks'!$A$4:INDEX('Building Blocks'!$A:$A,MATCH("zzz",'Building Blocks'!$A:$A))

    is the formula of a Named Range (imaginatively called "List"). It will adjust to take in new search terms as and when they're added. I added one on as a test...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-07-2020
    Location
    Suffolk
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Help with this text identification formula

    This has been a great help, its working really well now.

    Is there a way to make this have two lists which can act as an AND function, so a value from list A and value from List B must both be present for it to function. Is this complicated or just a simple and function between the current expressions with an extra list.

    Thanks

  8. #8
    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,055

    Re: Help with this text identification formula

    I COULD make a guess at what you mean. However, it would be simpler if you mocked up a sample sheet and posted it. That way there is less room for error in my quirky interpretation of your words!! Or... in two words (no! not THOSE two words):

    Show me.

  9. #9
    Registered User
    Join Date
    12-07-2020
    Location
    Suffolk
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Help with this text identification formula

    Here is the file,

    Basically, instead of one list, I want two lists of data which can mix and match with each other, if that makes sense

    Thanks
    Attached Files Attached Files

  10. #10
    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,055

    Re: Help with this text identification formula

    Try this:

    =IFERROR(IF(C10="N/A","",IF(C10="",IF(ISNUMBER(LOOKUP(1000,SEARCH(ListB,A10))),LOOKUP(1000,SEARCH(ListA,A10),ListA),""),C10)),"")
    Attached Files Attached Files

+ 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] Multiple Find and Replace Formula For Identification
    By brenonJensen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-30-2019, 12:18 PM
  2. De-identification of Dataset
    By brishtee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2018, 09:17 AM
  3. [SOLVED] More data identification formula questions - Compare, Validate and Display
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2018, 02:48 PM
  4. Variables identification
    By Hassan1977 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2016, 05:39 PM
  5. Replies: 11
    Last Post: 05-16-2013, 09:57 AM
  6. Identification and use of a particular box
    By Gawel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2012, 06:52 AM
  7. [SOLVED] Keystroke identification
    By Tim in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2006, 06:35 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