+ Reply to Thread
Results 1 to 2 of 2

Lookup and store in array

  1. #1
    Registered User
    Join Date
    10-07-2005
    Posts
    48

    Lookup and store in array

    Hi All

    i have a list of values(column a) i want to lookup from column(b) and print out store the value in column c into an array.

    EG

    nme nam %
    aaa aaa 1
    bbb aaa 2
    CCc aaa 3
    ddd bbb 2

    so if i lookup in name aaa, i want the aaa and 1 to be stored into an array. Also say i had anouther column would like it to store that value as well.

    Any help would be appreciated.

  2. #2
    Bob Phillips
    Guest

    Re: Lookup and store in array

    Look at Find and FindNext in VBA help.

    In the array, just use the cell value like

    ary(0) = cell.Offset(0,1).Value
    ary(1) = cell.Offset(0,2).Value

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "kanuvas" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi All
    >
    > i have a list of values(column a) i want to lookup from column(b) and
    > print out store the value in column c into an array.
    >
    > EG
    >
    > nme nam %
    > aaa aaa 1
    > bbb aaa 2
    > CCc aaa 3
    > ddd bbb 2
    >
    > so if i lookup in name aaa, i want the aaa and 1 to be stored into an
    > array. Also say i had anouther column would like it to store that
    > value as well.
    >
    > Any help would be appreciated.
    >
    >
    > --
    > kanuvas
    > ------------------------------------------------------------------------
    > kanuvas's Profile:

    http://www.excelforum.com/member.php...o&userid=27911
    > View this thread: http://www.excelforum.com/showthread...hreadid=483429
    >




+ 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