Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default data selection query no2

I have two worksheets.

the first has 1 column of info that largely follows a trend of the data in
the coulumn incrementing by 1 as you go down.
the second has 2 coulumns. Most, but not all, the data in the first column
matches the data in column 1. Column 2 also has some data in it.

I want to populate the data in sheet one column 2 with the relevent data
from sheet 2 column 2 where there is a match with column 1.

how can I achieve this?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default data selection query no2

In sheet 1, cell B1 --

=VLOOKUP(A1,Sheet2!$A$1:$B$4,2,0)

Change Sheet2!$A$1:$B$4 to be the range on Sheet2 that contains your
data. Then copy this formula down.

Help on VLOOKUP will give you more information on the arguments that
VLOOKUP takes.

--
HTH,
Dianne

In ,
SS typed:
I have two worksheets.

the first has 1 column of info that largely follows a trend of the
data in the coulumn incrementing by 1 as you go down.
the second has 2 coulumns. Most, but not all, the data in the first
column matches the data in column 1. Column 2 also has some data in
it.

I want to populate the data in sheet one column 2 with the relevent
data from sheet 2 column 2 where there is a match with column 1.

how can I achieve this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default data selection query no2

thanks - I'll look into this!


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
Using Query for a selection of items Keith Excel Discussion (Misc queries) 0 January 4th 07 12:10 PM
Using a ListBox selection to query a database CLamar Excel Discussion (Misc queries) 1 June 1st 06 07:32 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Save data retreived from query without saving query Anthony Excel Discussion (Misc queries) 0 January 25th 06 07:17 PM
data selection query no1. SS[_2_] Excel Programming 5 December 4th 03 08:11 PM


All times are GMT +1. The time now is 08:22 AM.

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"