+ Reply to Thread
Results 1 to 5 of 5

Testing Array's

  1. #1
    Forum Contributor
    Join Date
    08-23-2010
    Location
    Staten Island, NY
    MS-Off Ver
    Excel 2003
    Posts
    242

    Testing Array's

    I want to be able to test a Range to see if it is equal to an array:

    Please Login or Register  to view this content.
    three different ways I would like to test it:

    1) I want to test if it is exactly the same including if it is in the same order

    2) I want to test if it is the same but in a different order

    3) I want to be able to test of the range is included within that array but it is not complete.

  2. #2
    Forum Contributor
    Join Date
    08-23-2010
    Location
    Staten Island, NY
    MS-Off Ver
    Excel 2003
    Posts
    242

    Re: Testing Array's

    anyone have any ideas?

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Testing Array's

    This should do 1 & 2, I don't understand 3

    Please Login or Register  to view this content.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Testing Array's

    I would think that adding a check for the same dimensions to those two tests would cover it.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Testing Array's

    to test the match:

    if the range is A7:AR7

    check whether they are identical:
    Please Login or Register  to view this content.


    check if they are the same but in different order
    Please Login or Register  to view this content.

    check whether the array is part of the range:
    Please Login or Register  to view this content.
    Last edited by snb; 10-19-2011 at 12:08 PM.



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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