+ Reply to Thread
Results 1 to 12 of 12

only UNIQUE to Concatenate in has Exists dictionary

  1. #1
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    only UNIQUE to Concatenate in has Exists dictionary

    i have coding like this
    i want Take Unique in has Exists dictionary

    for example in A1:A6 ={a,a,a,b,b,c}
    i want only S = a,b
    i has add code in d.exists(txt) but still doubel

    Please Login or Register  to view this content.
    Last edited by daboho; 10-03-2018 at 06:31 AM.
    "ThankyouFor Attention * And Your Help!!"

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: only UNIQUE to Concatenate in has Exists dictionary

    Remove ElseIf part
    Please Login or Register  to view this content.
    Last edited by jindon; 10-03-2018 at 06:33 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    jindon i want only if has exists data then i want take only unique

    my problem is i have multi citeria (txt) ....
    in want in second loop if not instr(txt(1),sn(i,1))=1 then

    loop again ignore txt(1)

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: only UNIQUE to Concatenate in has Exists dictionary

    Ahh, then
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    jindon this is my picture result i want
    JINDON.png
    this is my coding
    Please Login or Register  to view this content.
    AND THIS IS MY FILE
    I HAVE 120.000 ROW my data so big
    Attached Files Attached Files
    Last edited by daboho; 10-03-2018 at 07:04 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: only UNIQUE to Concatenate in has Exists dictionary

    What are Criteria 1, Criteria 2 etc.

    Your explanation is always confusing.

    Just upload a workbook with the raw data and the result that you want clearly showing the logic behind it.

  7. #7
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    jindon this my criteria
    txt(1) = sn(i, 1) & sn(i, 2) 'this key first loop
    txt(2) = sn(i, 1) & sn(i, 3) 'this is second loop (in second loop if criteria meet but not include has show in txt(1) ,in my picture
    post #5 col (6:8) in first criteria txt(1) = sn(i, 1) & sn(i, 2) result in first column is x,d
    next key txt(2) i dont want result is x,d because has include in key txt(1)
    although included and meet key txt(2)
    i hope you understand i am sorri my english is bad

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: only UNIQUE to Concatenate in has Exists dictionary

    Still confusing.
    What's your desired result?
    You have duplicates in "your" result...

  9. #9
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    i am sorri if i has made you confusing but in my picture
    this is i want,
    second loop i am search duplikat value again using key = txt(2) = sn(i, 1) & sn(i, 3)
    x b 1
    x b 1
    d 2 x
    d 2 x

    x,x,d,d show again if using key2 txt(2) = sn(i, 1) & sn(i, 3)
    because x 1 and x 1 and d x and d x is duplikat if use txt(2) =sn(i,1) & sn(i,3)

    i dont want if value has include in txt(1) = sn(i, 1) & sn(i, 2) show again in key(2)
    i want remove that
    result this only
    f 3 2
    f 4 2
    f b 2
    f 2 2

    if meet key all entire row is showing

    jindon2.png
    Last edited by daboho; 10-03-2018 at 08:18 AM.

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: only UNIQUE to Concatenate in has Exists dictionary

    No, I don't understand.
    Your result have duplicate rows, so wait for someone else who understands what you are trying to do.

  11. #11
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    this code has sukses but in result in sheet2 also include x,d
    Please Login or Register  to view this content.

  12. #12
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,285

    Re: only UNIQUE to Concatenate in has Exists dictionary

    jindon this is has sucsess but in large data is very slow to run
    Please Login or Register  to view this content.

+ 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] Only exists save to dictionary
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-23-2018, 11:05 AM
  2. [SOLVED] Dictionary .Exists why does alias fail?
    By WmBarth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2016, 01:04 PM
  3. Help with unique values and dictionary method
    By Sparrer in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-25-2014, 02:24 PM
  4. Add Unique Values to Dictionary
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2011, 07:05 AM
  5. Replies: 2
    Last Post: 04-12-2010, 12:35 PM
  6. If Dictionary Exists
    By additude in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2008, 09:39 AM
  7. [SOLVED] Dictionary troubles. Declaring and checking .exists
    By Abe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2006, 01:10 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