Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Search for the cell content between sheets and copy corresponding

Hi Everyone,

I am working with this problem since some time, it will be a great if you
can help me to find out the solution. I have two sheets ("Sheet 1" and "sheet
2") with multiple columns and rows.
I have the task to search for the integer in cell "B2" of "sheet 1" in the
column "C" of "Sheet 2" and copy the corresponding "D column" value to "C2"
in Sheet 1. And this procedure should be executed untill the empty cell of
"Coloumn B" of "sheet 1" which might be after 100 or 200 rows.
e.g.: B2 of sheet 1 has a value of 2000. The macro has to find for 2000 in
column "C" of "sheet 2" and if it finds the value 2000 in C10 then the value
of D10 in sheet 2 has to be copied and pasted to the cell "C2" of "Sheet 1".

Thanks alot for your help....

Regards
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Search for the cell content between sheets and copy corresponding

See VLOOKUP in Excel Help
--
Gary''s Student - gsnu200904


"Venkat" wrote:

Hi Everyone,

I am working with this problem since some time, it will be a great if you
can help me to find out the solution. I have two sheets ("Sheet 1" and "sheet
2") with multiple columns and rows.
I have the task to search for the integer in cell "B2" of "sheet 1" in the
column "C" of "Sheet 2" and copy the corresponding "D column" value to "C2"
in Sheet 1. And this procedure should be executed untill the empty cell of
"Coloumn B" of "sheet 1" which might be after 100 or 200 rows.
e.g.: B2 of sheet 1 has a value of 2000. The macro has to find for 2000 in
column "C" of "sheet 2" and if it finds the value 2000 in C10 then the value
of D10 in sheet 2 has to be copied and pasted to the cell "C2" of "Sheet 1".

Thanks alot for your help....

Regards

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Search for the cell content between sheets and copy corresponding


In sheet1, cell C2:

=vlookup(B2,Sheet2!C:D,2,false)

then copy down to the bottom of sheet 1

Sam

"Venkat" wrote:

Hi Everyone,

I am working with this problem since some time, it will be a great if you
can help me to find out the solution. I have two sheets ("Sheet 1" and "sheet
2") with multiple columns and rows.
I have the task to search for the integer in cell "B2" of "sheet 1" in the
column "C" of "Sheet 2" and copy the corresponding "D column" value to "C2"
in Sheet 1. And this procedure should be executed untill the empty cell of
"Coloumn B" of "sheet 1" which might be after 100 or 200 rows.
e.g.: B2 of sheet 1 has a value of 2000. The macro has to find for 2000 in
column "C" of "sheet 2" and if it finds the value 2000 in C10 then the value
of D10 in sheet 2 has to be copied and pasted to the cell "C2" of "Sheet 1".

Thanks alot for your help....

Regards

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
search, copy and paste through multiple sheets Jeff S.[_2_] Excel Discussion (Misc queries) 1 August 16th 09 12:08 AM
Search and Replace Entire Cell Content JerryG Excel Discussion (Misc queries) 4 May 29th 08 09:37 AM
Copy sheets with content into same workbook A. Karatas Excel Programming 2 March 28th 07 08:00 AM
Can I search a cell for a value and extract part of content? Leben Excel Discussion (Misc queries) 1 December 16th 05 09:43 AM
How to search and copy cell content to another sheet? Roel Excel Worksheet Functions 1 March 7th 05 01:56 PM


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