+ Reply to Thread
Results 1 to 11 of 11

Compare 2 columns exists or not exists

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

    Compare 2 columns exists or not exists

    In a1 = a,b,c,d in b1=a,f,g,h,c
    I not exists in b1 then in c1 = f,g,h,b,d
    Else has exists in B1 then d1 = a,c
    Loop until A10 and B10
    Please Login or Register  to view this content.
    But still errror
    Last edited by daboho; 01-01-2018 at 08:23 AM.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Compare 2 columns exists or not exists

    What about a short Excel example, to be sure we are working on the same data ...!
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Compare 2 columns exists or not exists

    Perhaps ...next code
    Please Login or Register  to view this content.
    Last edited by PCI; 01-01-2018 at 09:01 AM. Reason: Typo

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 columns exists or not exists

    Another option:-
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,520

    Re: Compare 2 columns exists or not exists

    And another...albeit unorthodox
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Sintek; 01-01-2018 at 10:51 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Compare 2 columns exists or not exists

    Another option !!
    Please Login or Register  to view this content.
    Regards Mick

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

    Re: Compare 2 columns exists or not exists

    Thank every body great job

  8. #8
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: Compare 2 columns exists or not exists

    MickG
    I want ask you
    What the meaning
    2x transpose in (after first transpose then transpose again what mean thank
    Please Login or Register  to view this content.

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Compare 2 columns exists or not exists

    Double transpose is used because Join needs a 1-dimensional matrix.
    Please Login or Register  to view this content.
    can also be written as
    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Last edited by bakerman2; 01-01-2018 at 12:47 PM. Reason: Explanation double transpose.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  10. #10
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,512

    Re: Compare 2 columns exists or not exists

    Thank bakerman

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Compare 2 columns exists or not exists

    You're welcome and thanks for rep+.

+ 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] Unhide columns if value exists within another range
    By Lacaycer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2014, 02:04 PM
  2. Need to grab check 3 columns if value exists
    By Coulbourne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2014, 09:31 AM
  3. Replies: 4
    Last Post: 01-30-2014, 06:17 AM
  4. Compare two dates and possibly third if it exists to confirm <30 days
    By llamb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-02-2012, 06:32 PM
  5. Compare column B - If exists then update date, else copy to end
    By jimbob121 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2011, 02:21 PM
  6. compare two directories to check if file already exists
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2011, 11:44 AM
  7. Find numbers that dont exists in both columns
    By peter233 in forum Excel General
    Replies: 2
    Last Post: 04-18-2007, 05:11 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