+ Reply to Thread
Results 1 to 11 of 11

Check if String appear more then ONCE times in Cells

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Check if String appear more then ONCE times in Cells

    See attached.
    Defined (K1 , K2 ......K5) are in column Ki (B3:B7)
    Range where Ki appear is Range of Ki (E3:G11)
    Result is in Check column (C3:C7)

    If Ki, appear more then ONCE, then Crush for that Ki, if only ONCE then Clear
    Even K1K1 is Crush but only K1 row will show Crush
    Attached Files Attached Files
    Last edited by ionelz; 01-20-2019 at 05:26 PM.

  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,419

    Re: Check if String appear more then ONCE times in Cells

    Sorry - you have lost me on this one. Can you explain in more specific detail what we are looking at here?
    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
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Check if String appear more then ONCE times in Cells

    Ki, should appear only ONCE in any cell in range, and that mean Clear in Check Column for that Ki
    But for example in F3, is K1 and K5
    In Check column, K1 and K5 (rows) show Crush

    So if Ki defined in (B3:B7) from appears only ONCE in range (E3:G11) then say Clear for that Ki in C3:C7
    If Ki appear more then ONCE then say Crush for that Ki's (should be at least 2) and show in C3:C7 who Crush (in this case K1 and K5)
    So need to check Ki in any cell, if is ONCE then Clear (in Check column), else show Crush between Ki's

    This was done by Bo_Ry in my preview Post but now the question is a little different
    Last edited by ionelz; 01-20-2019 at 06:54 PM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Check if String appear more then ONCE times in Cells

    Nope. Absolutely no clearer. Where is the previous thread?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Check if String appear more then ONCE times in Cells

    See attached.
    I want formula in C3
    C3 and C7 show Crush because K1 and K5 are in same cell in range
    C5 show Crush because K3 and K3 are in same cell
    The rest are single in cell so, Clear
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Check if String appear more then ONCE times in Cells

    I've lost count of the contradictions and am more confused than before.

    Are we now counting Kis in range E3:G11 ? Over the whole range or just those in the same row as respective Ki ?
    Dave

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Check if String appear more then ONCE times in Cells

    Like I said :
    - I am looking in every single cell in Range
    - I can have only ONE Ki in cell.
    - If I have 2 or more , I need to make a correction
    - but the range is so big so I need a warning in Ki column
    - Who is in cell F3 for example? Is K1 and K5
    - that is why K1 show Crush and K5 show Crush
    - in another cell is K3 and K3 that is why K3 show Crush
    - the rest are Single in cell, no need to worry so Clear for them

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Check if String appear more then ONCE times in Cells

    Please try at C3 with CSE and drag down

    =IF(COUNT(FIND(B3,IF(LEN($E$3:$G$11)>2,$E$3:$G$11))),"Crush","Clear")

    Or normal Enter

    =IF(COUNTIFS($E$3:$G$11,"*"&B3&"*",$E$3:$G$11,"???*"),"Crush","Clear")
    Last edited by Bo_Ry; 01-21-2019 at 12:43 AM. Reason: Add formula

  9. #9
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Check if String appear more then ONCE times in Cells

    Super, like always !
    I have an issue , because I did not explain well
    It works for all Ki (i<=9)
    But if i>9 than for example, K1 "crush" with K14 or with K12 ..... (even if they are not in same cell)
    Probably because K1 is "root" of K14 ...
    So "string" was a bad name, I am looking for EXACT Ki
    Last edited by ionelz; 01-21-2019 at 09:57 AM.

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Check if String appear more then ONCE times in Cells

    Please use K01 instead of K1

    and change the formula to

    CSE
    =IF(COUNT(FIND(B3,IF(LEN($E$3:$G$11)>3,$E$3:$G$11))),"Crush","Clear")

    Or normal Enter

    =IF(COUNTIFS($E$3:$G$11,"*"&B3&"*",$E$3:$G$11,"????*"),"Crush","Clear")

  11. #11
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Check if String appear more then ONCE times in Cells

    Thank you again

+ 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] Check if other strings exist in column based on range string values
    By jeroenft in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2018, 07:49 AM
  2. Check specific range for any value that repeats itself 3 subsequent times
    By blackmilk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2013, 10:42 AM
  3. Finding how many times a string occurs in a range.
    By lamenters in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2013, 01:18 PM
  4. Replies: 2
    Last Post: 12-12-2012, 04:19 AM
  5. [SOLVED] count the number of times a string occurs in a range based on a condition
    By sshishirkumar in forum Excel General
    Replies: 6
    Last Post: 05-29-2012, 04:00 AM
  6. [SOLVED] Search Range and Return # of times a Text String occurs
    By Schwartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 04:23 PM
  7. Replies: 6
    Last Post: 01-30-2008, 01:30 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