#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default macro needed

well i have a situation at my hand
i have two sheets. one has a list of 2000 item and the other has 375
i want to compare the sheetA 375 one with SheetB 2000.
if the column A matches the columnA of sheet2 then copy the values from
sheetB from column B thru F in to sheet A F thru L can someone please tell
me how to do this or if someone can write a macro for this as i dont know at
all how to write those macros

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default macro needed

Use the VLOOKUP Function

In SheetA go to cell F2 and enter:

=VLOOKUP($A2,'SheetB'$A$2:$F$2000,2,FALSE)

Copy this formula into cell G2, H2, I2, J2. Change the third value (ie-2
above) to appropriate column number to pull (ie-G2 would be 3, H2 would be 4,
etc). If it matches up to something in the other sheet, it will pull the
appropriate value.

"Arain" wrote:

well i have a situation at my hand
i have two sheets. one has a list of 2000 item and the other has 375
i want to compare the sheetA 375 one with SheetB 2000.
if the column A matches the columnA of sheet2 then copy the values from
sheetB from column B thru F in to sheet A F thru L can someone please tell
me how to do this or if someone can write a macro for this as i dont know at
all how to write those macros

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default macro needed

well the thing is if column A in sheet one matches in Sheet B i need
everything i
related to that to be copied immediately in to respective fields in sheet A
in the columns i f thru l as they are the right info.
"Mallasch" wrote:

Use the VLOOKUP Function

In SheetA go to cell F2 and enter:

=VLOOKUP($A2,'SheetB'$A$2:$F$2000,2,FALSE)

Copy this formula into cell G2, H2, I2, J2. Change the third value (ie-2
above) to appropriate column number to pull (ie-G2 would be 3, H2 would be 4,
etc). If it matches up to something in the other sheet, it will pull the
appropriate value.

"Arain" wrote:

well i have a situation at my hand
i have two sheets. one has a list of 2000 item and the other has 375
i want to compare the sheetA 375 one with SheetB 2000.
if the column A matches the columnA of sheet2 then copy the values from
sheetB from column B thru F in to sheet A F thru L can someone please tell
me how to do this or if someone can write a macro for this as i dont know at
all how to write those macros

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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
link to combobox legepe Excel Discussion (Misc queries) 4 July 26th 06 04:45 PM
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
HELP NEEDED FOR IF Function Inside a Macro Sandi Excel Worksheet Functions 1 June 2nd 06 04:14 AM
Macro Help needed tamato43 Excel Discussion (Misc queries) 1 August 19th 05 01:48 AM


All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"