+ Reply to Thread
Results 1 to 20 of 20

Perform Double IF , if True plug Y

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Perform Double IF , if True plug Y

    If B has any of the 3 letters DLNTRS
    AND
    If B last letter has S , plug Y
    OTHERWISE
    leave blank

    Manually entered those Y , need through formula
    Attached Files Attached Files

  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
    80,591

    Re: Perform Double IF , if True plug Y

    Once again, you have failed to provide mocked up results, as far as I can see, and your description of what you want, yet again, is somewhat cryptic.

    SHOW us what you want: MANUALLY add your expected results to the sample file, please.

    You really do need to make a bit more of an effort to help us to help you.
    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 Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Perform Double IF , if True plug Y

    EDIT
    Notice the same question has been posted re expected results

    this should work
    =AND(SUMPRODUCT(--ISNUMBER(SEARCH(MID(B1,ROW(INDIRECT("b$1:b"&LEN(B1))),1),"dlntrs")))>=3,RIGHT(B1,1)="S")
    BUT it will count
    any letter more than once , which you did not show in your example
    so
    DDD = 3
    and will count
    so
    SSS will give a TRUE result
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    Etaf has got me beyond correct , I cannot write a better ENGLISH than this

    If B has any of the 3 letters DLNTRS
    AND
    If B last letter has S , plug Y
    OTHERWISE
    leave blank

    Etaf will leave the thread open , since any of those letters appearing 1 not twice nor thrice

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Perform Double IF , if True plug Y

    hence AliGW comments
    SHOW us what you want: MANUALLY add your expected results to the sample file, please.
    and mine
    you need to give the examples in the spreadsheet and perhaps show why

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

    Re: Perform Double IF , if True plug Y

    I cannot write a better ENGLISH than this
    All the more reason for you to SHOW us what you want - mock it up NOW, please.

    Etaf has got me beyond correct
    When someone 'gets' you, it's because you got lucky, not because your description was clear. I take offence at your implication that anyone who doesn't 'get' you straight away is rather inadequate. It is your descriptions and poor sample workbooks that are inadequate: this should come as no surprise to you, since we have been banging on about it for quite some time now.

  7. #7
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    SHAHADAS
    SADHANAS
    Y MADRASAS
    MADRASSA
    Y SARDANAS
    BADASSED
    BADASSES
    Y SUBADARS

    I put Y on those as it has 3 letters for once for any of the DLNTRS for the first 7 letters , appearing ONCE and that it has an additional S at the end , is this now understood ?
    Last edited by makinmomb; 03-22-2022 at 07:04 AM. Reason: DLNRST

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

    Re: Perform Double IF , if True plug Y

    In the SAMPLE FILE, add your MANUALLY calculated results. Then attach the workbook again. Is this now understood?

  9. #9
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    See attached with closer explained

    FIND DLNTRS in the words appearing for a minimum of 3 times , check last letter if S , plug Y
    Attached Files Attached Files
    Last edited by makinmomb; 03-22-2022 at 07:10 AM. Reason: explain again

  10. #10
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    ALIG you are being to hard on me , many have understood what i meant

  11. #11
    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
    80,591

    Re: Perform Double IF , if True plug Y

    Thank you. Next time, provide this sort of sample file at the BEGINNING of the thread, please.

    ALIG you are being to hard on me , many have understood what i meant
    No, I'm not. Many (including me!!!) have understood what you meant EVENTUALLY, but in MANY of your threads, that understanding has NOT been immediate. I am trying to get you to make your opening posts and particularly your sample files more helpful. You have now added a useful workbook to this thread: you could have done this right at the start of the thread.
    Last edited by AliGW; 03-22-2022 at 07:13 AM.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Perform Double IF , if True plug Y

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  13. #13
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    Thank you J Topley , leaving thread open , see if formula gives adjacent answers over senior macro man
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    Thread open for formula

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Perform Double IF , if True plug Y

    Here is a formula based solution that employs seven helper columns which may be moved and/or hidden for aesthetic purposes.
    1. The letters DLNTRS are placed in cells O1:T1 and the letter S is placed in cell V1
    2. O2:T565 are populated using: =ISNUMBER(SEARCH(O$1,$B2))
    3. V2:V565 are populated using: =RIGHT(B2,1)=V$1
    4. K2:K565 are populated using: =IF(AND(COUNTIFS(O2:T2,TRUE)>=3,V2),"Y","")
    Note that the values in K2:K565 match the values that were manually placed in J2:J565.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  16. #16
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Perform Double IF , if True plug Y

    Hi to all!

    Another option, with a single formula, could be:
    PHP Code: 
    =IF(AND(COUNT(SEARCH({"D","L","N","T","R","S"},B1))>2,RIGHT(B1)="S"),"Y",""
    Drag it down. Blessings!

  17. #17
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    John V , formula handy for me , thank you

  18. #18
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    John the formula does not count occurance , it plugs Y for DOPATTAS , John working is also plugging Y to that which i don't know , those any 3 letters for occur once , thread still open curious if there is a formula version on this
    Attached Files Attached Files
    Last edited by makinmomb; 03-25-2022 at 04:03 AM. Reason: Thread OPEN

  19. #19
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Perform Double IF , if True plug Y

    Hi makinmomb.

    DOPATTAS has three match letters. That is not a Y because has two T ?
    TOSTADAS has three match letters. That is not a Y because has two T ?

    Please explain better. I don't understand. Put representative examples by hand and explain why is Y and why don't is Y. Help us to help you. Blessings!

  20. #20
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: Perform Double IF , if True plug Y

    Three TRUE for It must appear once , not TT for DOPATTS and not TT for TOSTADAS

+ 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] PLUG true if cell range has = ALL ZERO
    By makinmomb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2015, 10:09 AM
  2. Macro to perform Double Click Action
    By got_flat_1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-21-2014, 04:29 PM
  3. [SOLVED] Plug true if cell has one name else leave blank
    By makinmomb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2014, 12:15 PM
  4. [SOLVED] plug true , if format 000.000.00
    By makinmomb in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-10-2014, 02:12 PM
  5. Replies: 4
    Last Post: 01-30-2014, 03:19 AM
  6. [SOLVED] Alternative to IF: need to perform different formulae for True and False
    By illyBLC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2013, 09:04 AM
  7. Using double-click on mouse to perform an action?
    By mgarcia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2009, 12:52 AM

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