Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Match , copy paste (using find?)

Hi,

Basically what I have is two excel sheets. One extensive list of accounts
and one with a selection of accounts from the extensive list.

Sheet 1 has a selected list of account numbers in Col A (about 400). And
nothing in col B

sheet 2 has a total list of account numbers in Col A (about 3000). And data
in col B.

I need to find the accounts on sheet 1 in sheet 2, and copy the data in the
B col of sheet 2 into the b col of sheet 1 for the relative account number.

I'm looking at Selecting A1(a/c number) finding the account number in sheet
2, copy B2 from sheet 2, and pasting back in sheet one in B1, then move onto
A2, until the list is complete.

Can anyone help with this?

Thanks
Carl


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Match , copy paste (using find?)

Don't use VBA, use VLOOKUP()


In Sheet1, B1 enter:
=VLOOKUP(A1,Sheet2!A$1:B$3000,2) and copy down

--
Gary''s Student - gsnu200772
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Match , copy paste (using find?)

Gary,

Thank you very much, So simple yet works a treat.. One for my notebook!!

Cheers
Carl

"Gary''s Student" wrote:

Don't use VBA, use VLOOKUP()


In Sheet1, B1 enter:
=VLOOKUP(A1,Sheet2!A$1:B$3000,2) and copy down

--
Gary''s Student - gsnu200772

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Match , copy paste (using find?)

Is there anyway to amend this so it tells you it's not found what it's
looking for rather then copying the last posted dated?



"Gary''s Student" wrote:

Don't use VBA, use VLOOKUP()


In Sheet1, B1 enter:
=VLOOKUP(A1,Sheet2!A$1:B$3000,2) and copy down

--
Gary''s Student - gsnu200772

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
Compare col and match then copy and paste saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 February 21st 08 12:28 AM
Copy Cell, Paste based on a match. Pete Excel Programming 2 July 23rd 07 07:20 PM
Find/Copy/paste.. then Find/Paste - not working ... at all.... [email protected] Excel Programming 9 November 30th 06 08:49 PM
help with match, copy, paste please Mona Excel Programming 6 July 20th 06 02:35 AM
Find text in another workbook and paste if found match - VBA Pasmatos Excel Discussion (Misc queries) 1 November 10th 05 01:00 PM


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