EXTRACT来自混合字符串的值


0

我试图从这些值的列中提取从单元格分配的数值。

CELL A1- CONSUMER id-23014875,Alias-35,ISE-4
CELL A2- Alias-65,ISE-9, CONSUMER id-27714875

所需的最终结果必须是消费者ID及其值


= MID(A1,SEARCH(“消费者ID”,A1),20)将返回消费者ID-随后是9个字母数字。这假设该数字总是9个字母。如果您希望在Alias和ISE之后返回数字,这将无效。请进一步澄清。
拍拍

Answers:


1

B1输入:

=MID(A1,FIND("CONSUMER id-",A1)+12,9999) & ","

并在C1中输入:

=LEFT(B1,FIND(",",B1)-1)

并向下复制这些单元格:

在此输入图像描述

如果需要,这些可以组合成单一配方。

=LEFT((MID(A1,FIND("CONSUMER id-",A1)+12,9999) & ","),FIND(",",(MID(A1,FIND("CONSUMER id-",A1)+12,9999) & ","))-1)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.