从组件构造 ID 字符串,包括名称的第一个和最后一个字母
Construct ID string from components including first and last letters from names
我正在处理一份 Excel 文档,我需要有关公式的帮助。我的 sheet 是这样设置的:
Column A = First Names
Column B = Last Names
Column G = User ID
我需要用户 ID 采用这种格式:AOKxxxx01 其中,顺序为:
x = first letter of first name
x = last letter of first name
x = first letter of last name
x = last letter of last name
因此对于 Bob Smith
,用户 ID 将在 G 列中显示为 AOKBBSH01
。
第一个B
是名字的第一个字母,第二个B
是名字的最后一个字母,S
是姓氏的第一个字母, H
是姓氏的最后一个字母。周围的 AOK
和 01
是不变的。
请尝试:
="AOK"&LEFT(A2)&UPPER(RIGHT(A2))&LEFT(B2)&UPPER(RIGHT(B2))&"01"
我正在处理一份 Excel 文档,我需要有关公式的帮助。我的 sheet 是这样设置的:
Column A = First Names
Column B = Last Names
Column G = User ID
我需要用户 ID 采用这种格式:AOKxxxx01 其中,顺序为:
x = first letter of first name
x = last letter of first name
x = first letter of last name
x = last letter of last name
因此对于 Bob Smith
,用户 ID 将在 G 列中显示为 AOKBBSH01
。
第一个B
是名字的第一个字母,第二个B
是名字的最后一个字母,S
是姓氏的第一个字母, H
是姓氏的最后一个字母。周围的 AOK
和 01
是不变的。
请尝试:
="AOK"&LEFT(A2)&UPPER(RIGHT(A2))&LEFT(B2)&UPPER(RIGHT(B2))&"01"