Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Lookup and store in array


Hi All

i have a list of values(column a) i want to lookup from column(b) an
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 a
array. Also say i had anouther column would like it to store tha
value as well.

Any help would be appreciated

--
kanuva
-----------------------------------------------------------------------
kanuvas's Profile: http://www.excelforum.com/member.php...fo&userid=2791
View this thread: http://www.excelforum.com/showthread.php?threadid=48342

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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" wrote in
message ...

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Store array ??? piero Excel Worksheet Functions 4 September 16th 09 04:39 PM
Can one store a string in a Array element? [email protected] Excel Discussion (Misc queries) 1 April 17th 07 12:53 PM
store chkbox.caption in array ilyaskazi[_19_] Excel Programming 3 June 7th 05 05:29 PM
Trying To Store Shapes/Objects to an array ?? Tom Ogilvy Excel Programming 2 September 21st 04 09:49 PM
Trying To Store Shapes/Objects to an array ?? Dan Thompson Excel Programming 0 September 21st 04 08:37 PM


All times are GMT +1. The time now is 03:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"