+ Reply to Thread
Results 1 to 5 of 5

Formula is ignored in another Col has a key phrase

  1. #1
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Formula is ignored in another Col has a key phrase

    Hello,

    In Col N I have information, for example

    AA-BB-CC
    CC-DD-EE
    FFF-G-HHH


    In Col O I have this formula;
    =IFERROR(IFERROR(INDEX(LISTS!S$2:S$10351,AGGREGATE(15,6,MATCH(LEFT(N6,ROW(INDIRECT("1:"&LEN(N6)))),LISTS!S$2:S$10351,),1)),LEFT(N6,FIND("-",N6)-1)),"")

    And the causes the data from Col N to look like

    AA
    CC
    FFF


    In Col P I have this formula
    =SUBSTITUTE(N5,O5&"-","")

    And this causes the data to look like
    BB-CC
    DD-EE
    G-HHH


    However, basically, what I need is when Col D has the phrase 'Do not Split' the information in Col N is simply replicated in Col P (I have about 50 potential phrases in Col D and they all require the information being split up)

  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
    81,224

    Re: Formula is ignored in another Col has a key phrase

    If you have AA in N5 as a result of your long formula, how can the second formula produce BB-CC?

    Anyway, you need this in P5:

    =IF(D5="Do not Split",N5,your_formula)
    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 Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Re: Formula is ignored in another Col has a key phrase

    Hello, thank you.

    The formula in Col O just takes everything from before the first "-" from the information in Col N so produces AA as that is before the first "-"


    Thank you very much though!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Formula is ignored in another Col has a key phrase

    Couldn't you just use this in column O, i.e. in O5:

    =LEFT(N5,FIND("-",N5)-1)

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    03-08-2019
    Location
    England
    MS-Off Ver
    2016
    Posts
    104

    Re: Formula is ignored in another Col has a key phrase

    Thanks Pete_UK - there's a couple of background things I need the formula in O to look at also so it's a bit longer

+ 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. Formula to remove text between bracket and certain phrase
    By Taisir in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-06-2015, 06:02 PM
  2. Macro for seaching a phrase and add 7 rows after that phrase
    By yhyhyhyh in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-10-2014, 11:52 PM
  3. Replies: 2
    Last Post: 10-09-2014, 05:14 AM
  4. Need formula to tell when a phrase is associated with different pages
    By newbieexceldude in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-20-2013, 01:35 AM
  5. Excel 2007 : Formula for specific phrase
    By Wskip49 in forum Excel General
    Replies: 2
    Last Post: 07-22-2009, 04:41 PM
  6. Function to return text from phrase X to phrase Y
    By razr in forum Excel General
    Replies: 3
    Last Post: 05-06-2009, 05:52 PM
  7. [SOLVED] Is there a formula to find one phrase in a selection?
    By Tiff1618 in forum Excel General
    Replies: 4
    Last Post: 09-02-2005, 09:05 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