+ Reply to Thread
Results 1 to 4 of 4

Comparing two Arrays

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    1

    Comparing two Arrays

    Hi

    I have made some code that works perfect, but i was wondering how you guys would speed it up a bit and simplify it. I couldn't figure out how to compare the to arrays DataRange and DRReal. Hope you can help me!
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 02-24-2017 at 10:15 AM. Reason: code tags

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Comparing two Arrays

    I couldn't figure out how to compare the to arrays DataRange and DRReal.
    What is it you want to compare about them, and what action do you want to take as a result of the comparison?

    I notice you have a couple of GoTo statements. I am a big opponent of those and will suggest an alternative once I understand your comparison issue.

    In one case you have

    Please Login or Register  to view this content.
    But Icol will never be greater than 3. I don't know why you have that If/GoTo there.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Comparing two Arrays

    Here is a streamlined version of your code, although it won't be any faster. I suggest you test it to make sure it still does the same thing. I can provide more help when I get your explanation.

    Please Login or Register  to view this content.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Comparing two Arrays

    Here is an even more streamlined version but still need to resolve your array comparison issue.

    I have not tested this but would be happy to do so if I had your file.

    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. Help comparing 2 arrays
    By jfoerch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2015, 12:14 PM
  2. [SOLVED] Help Comparing Arrays (to Other Arrays)
    By Polite Master in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2013, 01:03 PM
  3. Comparing arrays....
    By Bedlam in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-02-2011, 03:15 PM
  4. [SOLVED] Comparing two arrays what the best most efficient way
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-08-2011, 08:19 AM
  5. Comparing arrays
    By JoshuaSQ in forum Excel General
    Replies: 8
    Last Post: 02-13-2010, 01:47 AM
  6. Comparing 2 arrays
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-01-2006, 10:35 PM
  7. Comparing Arrays
    By TangentMemory in forum Excel General
    Replies: 2
    Last Post: 05-13-2005, 01:06 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