Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SJ Hong
 
Posts: n/a
Default How to fill the matched field automatically

I have following work data.

1. Sheet1

Company code Company name Products Amounts ......
--------------------------------------------------------
aa ZZZ $1,000
ab XXX $900
ca ZZZ $800
dd VVV $1,000
aa XXX $800
..
..
..


2. Sheet2
Company code Company name
--------------------------------
aa ABC Corp.
ab TS Elec.
ca CC Mech.
dd NJ Corp.
..
..
..

As you can see, the company name field is blank. Is there any proper formula
if company code is same between sheet1 and sheet2, company name is filled
automatically in Sheet1?
I would like to know a proper formula in the company name field of Sheet1.


Thanks in advance
SJ Hong


  #2   Report Post  
Rowan Drummond
 
Posts: n/a
Default How to fill the matched field automatically

Use the VLOOKUP formula eg
=VLOOKUP(A2,Sheet2!$A$2:$D$20,2,0)
See excel help and http://www.contextures.com/xlFunctions02.html for
more information.

Hope this helps
Rowan

SJ Hong wrote:
I have following work data.

1. Sheet1

Company code Company name Products Amounts ......
--------------------------------------------------------
aa ZZZ $1,000
ab XXX $900
ca ZZZ $800
dd VVV $1,000
aa XXX $800
.
.
.


2. Sheet2
Company code Company name
--------------------------------
aa ABC Corp.
ab TS Elec.
ca CC Mech.
dd NJ Corp.
.
.
.

As you can see, the company name field is blank. Is there any proper formula
if company code is same between sheet1 and sheet2, company name is filled
automatically in Sheet1?
I would like to know a proper formula in the company name field of Sheet1.


Thanks in advance
SJ Hong


  #3   Report Post  
topola
 
Posts: n/a
Default How to fill the matched field automatically


SJ Hong napisal(a):
I have following work data.

1. Sheet1

Company code Company name Products Amounts ......
--------------------------------------------------------
aa ZZZ $1,000
ab XXX $900
ca ZZZ $800
dd VVV $1,000
aa XXX $800
.
.
.


2. Sheet2
Company code Company name
--------------------------------
aa ABC Corp.
ab TS Elec.
ca CC Mech.
dd NJ Corp.
.
.
.

As you can see, the company name field is blank. Is there any proper formula
if company code is same between sheet1 and sheet2, company name is filled
automatically in Sheet1?
I would like to know a proper formula in the company name field of Sheet1.


Thanks in advance
SJ Hong


In Sheet2 select your data range and name this range "DATA".
In Sheet1 cell B3 formula = VLOOKUP($A3,data,2,0). For details while
being in the cell with formula select Insert Function.

Tomek Polak
http://vba.blog.onet.pl

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
Excel should not automatically extend series or fill values whisperlm Excel Discussion (Misc queries) 0 July 13th 05 07:06 PM
Fill automatically from one worksheet to another based on cel valu guillaumet Excel Discussion (Misc queries) 4 June 6th 05 02:17 AM
automatically fill in a range of cells Maarten Excel Discussion (Misc queries) 1 April 29th 05 11:14 AM
Field whose value increments automatically Quinnboy Excel Discussion (Misc queries) 2 March 15th 05 04:27 PM
Can an excel cell automatically change fill colors based on values John Clark Excel Discussion (Misc queries) 1 February 5th 05 05:21 PM


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