Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sisko101
 
Posts: n/a
Default searching in an array

How do I locate a value in an array (Ex. Check to see if B2 from sheet1
equals a value in column C of sheet 2) then return the corresponding value in
a different array if they equal ( B2 on sheet 1 equals C23 in column C, so
the returned value is the value of the corresponding value in column D, for
this example D23)?
  #2   Report Post  
Bill Kuunders
 
Posts: n/a
Default

enter in sheet1 cell C2
=VLOOKUP(B2,Sheet2!C1:D30,2,FALSE)

In this example the columns are only 30 cells deep
the 2 stands for the second column in the range C1:D30
--
Greetings from New Zealand
Bill K

"sisko101" wrote in message
...
How do I locate a value in an array (Ex. Check to see if B2 from sheet1
equals a value in column C of sheet 2) then return the corresponding value
in
a different array if they equal ( B2 on sheet 1 equals C23 in column C, so
the returned value is the value of the corresponding value in column D,
for
this example D23)?



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
Searching for a criteria in array of cells within an IF statement selvaraj Excel Worksheet Functions 1 July 28th 05 03:36 PM
Pass an array to Rank Biff Excel Worksheet Functions 12 June 29th 05 04:15 PM
Where is the bug in my array? Gail Gurman Excel Discussion (Misc queries) 1 January 25th 05 12:36 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 08:01 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"