Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KH
 
Posts: n/a
Default How to populate one sheet with data from another sheet

I have 2 sheets in the excel file.
On the first sheet the first colum is a part num only.
The second sheet has part num on the first column and descriptions on the
second column.
I need a macro or script that will scan the second sheet for part num that
matches
the first sheet part num and populate the description(at the second column)
on the first excel sheet.


--
KH
  #2   Report Post  
Max
 
Posts: n/a
Default

One way ..

Assuming the reference data is in Sheet2, cols A and B
col A = part#, col B = description

In Sheet1
-----------
With col A containing part# in A2 down,

Put in B2:

=IF(ISNA(MATCH(A2,Sheet2!A:A,0)),"",VLOOKUP(A2,She et2!A:B,2,0))

Copy down

Col B will return the descriptions corresponding
to the part# in col A.

Unmatched part#s will return blanks: ""

Adapt to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"KH" wrote in message
...
I have 2 sheets in the excel file.
On the first sheet the first colum is a part num only.
The second sheet has part num on the first column and descriptions on the
second column.
I need a macro or script that will scan the second sheet for part num that
matches
the first sheet part num and populate the description(at the second

column)
on the first excel sheet.


--
KH



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
Merger Two Data Sheet Charles Excel Discussion (Misc queries) 2 March 18th 05 03:35 PM
populate cells with data from another sheet Pepe_abu Excel Worksheet Functions 0 January 15th 05 08:51 AM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Automatic cell increment with data from sheet 1 to sheet 2 Big G Excel Worksheet Functions 2 December 20th 04 05:59 PM
pull data from sheet two, then fill in the data to sheet one (part Jim Excel Worksheet Functions 3 December 11th 04 04:51 AM


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