+ Reply to Thread
Results 1 to 9 of 9

Need help solving a formula string. Please assist

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    53

    Need help solving a formula string. Please assist

    Example

    B4 contains the text

    Cell C4 says TRUE

    Cell D4 needs to return the entire text from B4 if part of the text string (IN) is found in B4 and C4 is TRUE

    I have this formula, but don't know how to only make it enter the text in D4 FROM B4 if C4 is TRUE

    This is the formula I've been working with

    =IF(OR(ISNUMBER(SEARCH("IN",B4)),ISNUMBER(SEARCH("IN",B4))),B4,"Not Used")

    Can anyone re-write the formula for me?

    Thanks,
    Kevin

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Need help solving a formula string. Please assist

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need help solving a formula string. Please assist

    Out of curiosity, where does C4 factor into your equation? Your equation refers to B4 twice and I see no reference to C4 and you have an OR statement instead of an AND statement as you seem to be saying that both IN should be in B4 AND C4 is TRUE.
    BTW, a shorter version of what you showed in your post would be =IF(ISNUMBER(SEARCH("IN",B4)),B4,"Not Used")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    07-18-2016
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    53

    Re: Need help solving a formula string. Please assist

    Please see attached sample spreadsheet

    Column A contains checkboxes that update column C to True or False

    Column B is the full data

    Column C is the True/False from the checkbox (Column A)

    Need Column D, each row, to only copy the name into the respective row cell in Column D if A is Checked, causing Column C to turn to True

    Here's the string I've been working with.

    =IF(OR(ISNUMBER(SEARCH("IN",B4)),ISNUMBER(SEARCH("IN",B4))),B4,"")

    Thanks for the help and support.

    Regards
    Kevin
    Attached Files Attached Files

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need help solving a formula string. Please assist

    I think this is the formula you are wanting then... =IF(AND(ISNUMBER(SEARCH("IN",B4)),C4=TRUE),B4,"")

  6. #6
    Registered User
    Join Date
    07-18-2016
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    53

    Re: Need help solving a formula string. Please assist

    Thank you,

    =IF(AND(ISNUMBER(SEARCH("IN",B4)),C4=TRUE),B4,"")

    Worked great.

    Thank you for your help

  7. #7
    Registered User
    Join Date
    07-18-2016
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    53

    Re: Need help solving a formula string. Please assist

    Quote Originally Posted by Sam Capricci View Post
    I think this is the formula you are wanting then... =IF(AND(ISNUMBER(SEARCH("IN",B4)),C4=TRUE),B4,"")
    IS there a way to include an error message if A is checked and C is true but D is blank?

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need help solving a formula string. Please assist

    Are you saying you want something like... =IF(AND(ISNUMBER(SEARCH("IN",B4)),C4=TRUE),B4,"ERROR")
    or some other message to replace ERROR.

    BTW that formula is supposed to go in col D.
    Last edited by Sam Capricci; 03-30-2023 at 08:35 PM.

  9. #9
    Registered User
    Join Date
    07-18-2016
    Location
    Illinois
    MS-Off Ver
    2010
    Posts
    53

    Re: Need help solving a formula string. Please assist

    Thank you for your help =) Cheers

+ 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. Assist with SUMPRODUCT Formula
    By kgee1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-27-2021, 12:35 PM
  2. [SOLVED] Excel formula assist in looking for sequence
    By brian8989 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2019, 02:42 AM
  3. [SOLVED] If Formula To Assist Concatenate
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2018, 08:19 PM
  4. [SOLVED] Vlookup and sumif formula assist
    By sintek in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-24-2015, 03:04 AM
  5. PLease assist with a formula
    By nightcrawler-jay in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2010, 03:56 AM
  6. Formula Assist
    By [email protected] in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 07:37 PM
  7. If formula- hoping someone can assist
    By Ntisch in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 07-26-2005, 06:05 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