+ Reply to Thread
Results 1 to 2 of 2

Finding values within an array

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-04-2003
    Posts
    360

    Finding values within an array

    Is there a neater/faster way than having to use worksheet functions and iterating through an array to find values.

    my example - I have an array containing the following:
    AAAA ZZ 0001
    BBBB ZZ 0001
    AAAA XX 0001
    BBBB ZZ 0001
    AAAA XX 0001

    I'm aiming to search for 'AAAA' and 'XX' which would return a subtotal of 2.
    If this needs more explain - give a shout.
    Cheers,
    Matt.

  2. #2
    Tom Ogilvy
    Guest

    RE: Finding values within an array

    Beyond worksheet functions, there are no VBA functions that would do what you
    want. That said, looping through an array is very fast. the only function I
    can think of that comes close to working with an array is the Filter
    function, but it only works on a one dimensional array of strings.
    --
    Regards,
    Tom Ogilvy


    "MattShoreson" wrote:

    >
    > Is there a neater/faster way than having to use worksheet functions and
    > iterating through an array to find values.
    >
    > my example - I have an array containing the following:
    > AAAA ZZ 0001
    > BBBB ZZ 0001
    > AAAA XX 0001
    > BBBB ZZ 0001
    > AAAA XX 0001
    >
    > I'm aiming to search for 'AAAA' and 'XX' which would return a subtotal
    > of 2.
    > If this needs more explain - give a shout.
    > Cheers,
    > Matt.
    >
    >
    > --
    > MattShoreson
    > ------------------------------------------------------------------------
    > MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
    > View this thread: http://www.excelforum.com/showthread...hreadid=526723
    >
    >


+ 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