获取值表单searchname列并将其找到列A(如果可用),然后在下一列B中将打印主客户列

时间:2014-04-11 05:12:06

标签: excel-vba vba excel

shhet1(Searchname) 柱

**Searchnames                       Master Customer**
Carestream Health                       Carestream Health
Computer Sciences Corporation     Computer Sciences Corporation
Enterasys                                Enterasys
Freescale Semiconductor            Freescale Semiconductor
Micron Technology                       Micron Technology
Nichia Corporation                      Nichia Corporation
STMicroelectronics                      STMicroelectronics

shhet2(Preselling)
column A,B
Below vlaues are in Column A

客户(列标题)

DF Australia Pty Carestream Health
DEC LTD.INTERNATIONAL
Kazakhstan Petrochemical Industrials In Carestream Health
MASCO CORPORATION
Target Stores
FLSMIDTH A/S
KBR
FLSMIDTH A/S
haerbin electric group

我有两个excel表(searchname,预售),在searchname表中我有两个列(Searchnames,Master Customer)。所以我想从searchname列中获取一个vaule,并在列#34; A"中找到similer值到第二张表中。如果该值存在于A列中,那么在下一列B中将打印Master Customer列中的值

1 个答案:

答案 0 :(得分:0)

你试过vlookups吗?

Vlookups将帮助您从另一个与特定单元格匹配的工作表中的另一列中查找值。请注意,它只会获取一个值

http://spreadsheets.about.com/od/excelfunctions/ss/vlookup.htm