+ Reply to Thread
Results 1 to 10 of 10

Simplify Formula - If Find a String In Row for a Specific Value

  1. #1
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Simplify Formula - If Find a String In Row for a Specific Value

    Hello,

    Is there a way to simplify formula in B4 from attached file ?

    Current formula in B4: IF(OR(VLOOKUP(A9,$A$9:$F$11,2,FALSE)="TBD",VLOOKUP(A9,$A$9:$F$11,3,FALSE)="TBD",VLOOKUP(A9,$A$9:$F$11,4,FALSE)="TBD",VLOOKUP(A9,$A$9:$F$11,5,FALSE)="TBD",VLOOKUP(A9,$A$9:$F$11,6,FALSE)="TBD"),"Yes","No")

    The formula indicate "Yes" if the word "TBD" is found in the row for ID 77855000
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Another way, =IF(ISNUMBER(MATCH("TBD",XLOOKUP(A4,$A$9:$A$11,$B$9:$F$11),0)),"Yes","No").

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Try this.

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


    Amazingly equal.
    Last edited by DJunqueira; 03-06-2024 at 09:55 PM.

  5. #5
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Amazing, the proposed formulas cut the original by more than half. That is very helpful as the sample is searching only thru 5 columns, but the actual file is looking over 50 columns.

    Very helpful. Thank you both for the quick response!

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Just one cell formula now.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 03-06-2024 at 09:57 PM.

  7. #7
    Registered User
    Join Date
    12-29-2016
    Location
    United State
    MS-Off Ver
    O365
    Posts
    36

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Thank you all for your input, I will try all of them to see which formula produce the smaller file size across hundreds of thousands of records.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    You're welcome. :



    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Just playing with DJ's solution. To make it easier to add search or look up rows, or increase the colour columns, try this:

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

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,465

    Re: Simplify Formula - If Find a String In Row for a Specific Value

    Cell B4 formula

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

+ 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] Find if a formula in a row end's with specific word in string
    By gach in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-20-2022, 09:49 AM
  2. [SOLVED] VBA Find String before specific character in string
    By Catsonheat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2019, 07:31 AM
  3. [SOLVED] Can I use FIND function to find specific string in a single cell?
    By bonpara in forum Excel General
    Replies: 2
    Last Post: 10-05-2015, 05:46 PM
  4. Formula to Find a specific text within a text string
    By ewong in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-13-2012, 01:36 PM
  5. Find a specific string
    By AK69 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-26-2011, 12:06 PM
  6. Find specific text at end of string
    By VegasL in forum Excel General
    Replies: 3
    Last Post: 11-05-2009, 07:31 PM
  7. Find Specific string
    By janjan_376 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2009, 12:38 PM

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