+ Reply to Thread
Results 1 to 18 of 18

Checking a word with 11 letters

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

    Checking a word with 11 letters

    Please Login or Register  to view this content.

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

    Re: Checking a word with 11 letters

    Here is the attachment
    Attached Files Attached Files

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

    Re: Checking a word with 11 letters

    What I am trying to achieve is for example

    CLOSING is a word , the result is N because it does not contain 6 letters of what I am checking through a parameter of letters AEIOUDLNRST

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

    Re: Checking a word with 11 letters

    For a word like TRAINEE the result is Y because
    6 of these letters are in the check list against AEIOUDLNRST

    For a word like MIRITIS the result to be true regardless the letter "I" appearing three times

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

    Re: Checking a word with 11 letters

    3 non vowels and 3 vowels in any repeats allowed

    Say the word BANANAS , result is yes because a is in the check list , n is in the check list and s too

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

    Re: Checking a word with 11 letters

    In the file I have manually highlighted , red for those not matching and yellow those matching if someone would use
    conditional instead of formula

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

    Re: Checking a word with 11 letters

    You can put this formula in B1 and copy down to give you the y/n that you showed earlier:

    =IF(SUMPRODUCT(--(ISNUMBER(SEARCH($C$1:$G$1,A1))))+SUMPRODUCT(--(ISNUMBER(SEARCH($C$2:$H$2,A1))))>=6,"y","n")

    If you want to apply CF instead, select the cells A1 to A10 and choose them all to fill with red using normal formatting, then with the cells still highlighted click on Conditional Formatting | New Rule | Use a formula... , then put this formula in the dialogue box:

    =SUMPRODUCT(--(ISNUMBER(SEARCH($C$1:$G$1,A1))))+SUMPRODUCT(--(ISNUMBER(SEARCH($C$2:$H$2,A1))))>=6

    Click on the Format button, choose Fill and select Yellow. Then click on OK twice to exit the dialogue box and to apply the CFs. Note that conditional formatting has priority over normal formatting, so any cells that meet the condition will be coloured yellow.

    Hope this helps.

    Pete

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

    Re: Checking a word with 11 letters

    Pete your formula almost correct

    It knocks off word KHALIFA but does not knock N on CLOSING and FEATING

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

    Re: Checking a word with 11 letters

    Well it does for me - see attached file, which has both the formulae in column B and the CF applied.

    Hope this helps.

    Pete
    Attached Files Attached Files

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

    Re: Checking a word with 11 letters

    Yes correct as needed

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

    Re: Checking a word with 11 letters

    it marks the word BANANA red , works half way , cannot handle repeat letters

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

    Re: Checking a word with 11 letters

    Works fine with unique letters , B is not on the check list but all letters AAANNS are part of the check list though appearing more than once

    I will still use your solution for some other words but not for words like BANANAS

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

    Re: Checking a word with 11 letters

    You can use this formula in B1:

    =IF(LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,C$1,""),D$1,""),E$1,""),F$1,""),G$1,""),C$2,""),D$2,""),E$2,""),F$2,""),G$2,""),H$2,""))>=6,"y","n")

    to cope with words like BANANAS.

    Hope this helps.

    Pete

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

    Re: Checking a word with 11 letters

    This should do if you were kind to send it as attach and update CF , thank you

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

    Re: Checking a word with 11 letters

    I then close thread , if you are updating CF , please do for whole column since when I type or paste
    then , shades are taken care of

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

    Re: Checking a word with 11 letters

    Amended file attached.

    Pete
    Attached Files Attached Files

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

    Re: Checking a word with 11 letters

    You hadn't posted #15 when I replied. If you want to apply to more cells, just select A10, click on Format Painter, then select the range of cells (from A11 downwards) that you want this to apply to.

    Hope this helps.

    Pete

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

    Re: Checking a word with 11 letters

    Thank you gain Pete_UK

+ 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] Checking for duplicates & assigning assending letters in next colomn before sort
    By How How in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2013, 11:46 AM
  2. Checking if a certain row has a specific word
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-20-2012, 09:56 AM
  3. Possible to display the 1st 5 letters of a word??
    By jasonmcbride in forum Excel General
    Replies: 7
    Last Post: 11-13-2008, 06:30 PM
  4. split word into letters
    By rogerthat12345 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2007, 05:53 PM
  5. Letters In A Word
    By djfatboyfats in forum Excel General
    Replies: 5
    Last Post: 07-18-2007, 10:19 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