vlookup函数excel剪切部分字符串

时间:2018-11-24 10:42:54

标签: excel vlookup

伙计,我有一个小问题。我有2个csv文件,我想将一些数据从一个csv复制到另一个ID相同的地方。为此,我使用vlookupfunction,但有些不好。 原始csv中的原始字符串是:

48 Port Managed Layer 3 Gigabit Ethernet Switch with optional 10GigE uplink and 802.3af and Legacy Power over Ethernet. Includes 48 - Copper Gigabit (1000Base-T) access ports and 2 - High Speed Expansion Slots. Provides up to 370 watts of 802.3af compliant power. Features include 802.1Q VLANs, GVRP, 802.1p QoS, 802.1w Rapid Spanning Tree, 802.3ad Link Aggregation, Auto MDI/MDI-X, CLI, HTTP GUI, SSH, SSL, RADIUS, SNMP. 19" Rackmount 1U housing. Includes AC PoE power supply. Supported expansion modules: Dual Stacking XIM (4700470F1, 4700470F2, 4700470F5), Dual SFP XIM (1700473F1), Dual SFP+ XIM (1700471F1).

当我使用此功能时

=IFERROR(VLOOKUP($A2,osnova.csv!$B$2:$AD$1660,8,0),IF(G2="","",G2))

我得到了这个字符串:

48 Port Managed Layer 3 Gigabit Ethernet Switch with optional 10GigE uplink and 802.3af and Legacy Power over Ethernet. Includes 48 - Copper Gigabit (1000Base-T) access ports and 2 - High Speed Expansion Slots. Provides up to 370 watts of 802.3af compliant power. Features include 802.1Q VLANs, GVRP, 802.1p QoS, 802.1w Rapid Spanning Tree, 802. 19" Rackmount 1U housing. Includes AC PoE power supply. Supported expansion modules: Dual Stacking XIM (4700470F1, 4700470F2, 4700470F5), Dual SFP XIM (1700473F1), Dual SFP+ XIM (1700471F1).

区别在于我在原始字符串中有此部分,而在复制版本中我丢失了该部分:

.3ad Link Aggregation, Auto MDI/MDI-X, CLI, HTTP GUI, SSH, SSL, RADIUS, SNMP.

有人可以帮我吗?我在功能上做错了吗?

1 个答案:

答案 0 :(得分:1)

您的Excel版本必须达到VLOOKUP的{​​{3}} character。首先,您不应该使用此功能limit。考虑使用很多it's broken and it sucks组合=index(osnova.csv!$H$1660, match($A2,osnova.csv!$B$2,0))