Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 465
Default Look up information on one worksheet and transfer to another


Hi

In column A in worksheet 1 I have a list of numbers. Column B is blank.

In column A of worksheet 2 I have a list of numbers , with further
reference numbers next to each in column B.

What I need to do is to have a routine which will compare each number n
column A in worksheet 2 to column A in worksheet 1. It needs to run for
as many numbers as there are , and stop at the last one in the column.

Where there is a match , the number in column B in worksheet 2 needs to
be transferred to column B worksheet 1 in the same row as the matching
number. Where there is no match , the cell remains blank

example

Ws 1
A B

1
2
3
4
5
6
7
8

Ws 2
A B

1 3457
3 8566
5 2332
7 3346

After match

Ws 1
A B

1 3457
2
3 8566
4
5 2332
6
7 3346
8

I hope this seems clear.


Any help appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Look up information on one worksheet and transfer to another

You could use Vlookup for this task:

in WS1 cell B1 put following formula:
=vlookup(A1,Ws2!$A$1:$B$2000,2,false)

and then drag that formula down for all rows you need.
if you want to check for errors you could use this formula:
=if(iserror(vlookup(A1,Ws2!$A$1:$B$2000,2,false)), "",vlookup(A1,Ws2!$A
$1:$A$2000,1,false))

hth

Carlo

On Jan 30, 1:53*pm, Colin Hayes wrote:
Hi

In column A in worksheet 1 I have a list of numbers. Column B is blank.

In column A of worksheet 2 I have a list of numbers , with further
reference numbers next to each in column B.

What I need to do is to have a routine which will compare each number n
column A in worksheet 2 to column A in worksheet 1. It needs to run for
as many numbers as there are , and stop at the last one in the column.

Where there is a match , the number in column B in worksheet 2 needs to
be transferred to column B worksheet 1 in the same row as the matching
number. Where there is no match , the cell remains blank

example

Ws 1
A * *B

1
2
3
4
5
6
7
8

Ws 2
A * * *B

1 * *3457
3 * *8566
5 * *2332
7 * *3346

After match

Ws 1
A * * *B

1 * *3457
2
3 * *8566
4
5 * *2332
6
7 * *3346
8

I hope this seems clear.

Any help appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 465
Default Look up information on one worksheet and transfer to another

In article
,
carlo writes
You could use Vlookup for this task:

in WS1 cell B1 put following formula:
=vlookup(A1,Ws2!$A$1:$B$2000,2,false)

and then drag that formula down for all rows you need.
if you want to check for errors you could use this formula:
=if(iserror(vlookup(A1,Ws2!$A$1:$B$2000,2,false)) ,"",vlookup(A1,Ws2!$A
$1:$A$2000,1,false))

hth

Carlo


H Carlo

Yes that's got - thanks. Very helpful.


Best Wishes





On Jan 30, 1:53*pm, Colin Hayes wrote:
Hi

In column A in worksheet 1 I have a list of numbers. Column B is blank.

In column A of worksheet 2 I have a list of numbers , with further
reference numbers next to each in column B.

What I need to do is to have a routine which will compare each number n
column A in worksheet 2 to column A in worksheet 1. It needs to run for
as many numbers as there are , and stop at the last one in the column.

Where there is a match , the number in column B in worksheet 2 needs to
be transferred to column B worksheet 1 in the same row as the matching
number. Where there is no match , the cell remains blank

example

Ws 1
A * *B

1
2
3
4
5
6
7
8

Ws 2
A * * *B

1 * *3457
3 * *8566
5 * *2332
7 * *3346

After match

Ws 1
A * * *B

1 * *3457
2
3 * *8566
4
5 * *2332
6
7 * *3346
8

I hope this seems clear.

Any help appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Look up information on one worksheet and transfer to another

On Jan 30, 11:28*pm, Colin Hayes wrote:
In article
,
carlo writes

You could use Vlookup for this task:


in WS1 cell B1 put following formula:
=vlookup(A1,Ws2!$A$1:$B$2000,2,false)


and then drag that formula down for all rows you need.
if you want to check for errors you could use this formula:
=if(iserror(vlookup(A1,Ws2!$A$1:$B$2000,2,false)) ,"",vlookup(A1,Ws2!$A
$1:$A$2000,1,false))


hth


Carlo


H Carlo

Yes that's got - thanks. Very helpful.

Best Wishes





On Jan 30, 1:53*pm, Colin Hayes wrote:
Hi


In column A in worksheet 1 I have a list of numbers. Column B is blank.


In column A of worksheet 2 I have a list of numbers , with further
reference numbers next to each in column B.


What I need to do is to have a routine which will compare each number n
column A in worksheet 2 to column A in worksheet 1. It needs to run for
as many numbers as there are , and stop at the last one in the column.


Where there is a match , the number in column B in worksheet 2 needs to
be transferred to column B worksheet 1 in the same row as the matching
number. Where there is no match , the cell remains blank


example


Ws 1
A * *B


1
2
3
4
5
6
7
8


Ws 2
A * * *B


1 * *3457
3 * *8566
5 * *2332
7 * *3346


After match


Ws 1
A * * *B


1 * *3457
2
3 * *8566
4
5 * *2332
6
7 * *3346
8


I hope this seems clear.


Any help appreciated.- Hide quoted text -


- Show quoted text -


You're welcome, thanks for the feedback
Carlo
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
Same Worksheet, want to transfer information from one tab to anoth David Excel Worksheet Functions 2 January 29th 08 07:35 PM
Transfer information Aggie G Setting up and Configuration of Excel 15 April 26th 07 03:43 PM
how do I transfer information from one sheet to another? Dan B. Excel Discussion (Misc queries) 2 April 14th 06 01:33 PM
How do I transfer formulas but not the information? Confused Assistant Excel Worksheet Functions 1 March 17th 06 04:05 PM
transfer information from one worksheet to another using a butto. langus480 Excel Worksheet Functions 1 September 16th 05 07:28 PM


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