[英]Using Transpose Split with Vlookup and Importrange - Google Sheets
I am trying to use the transpose split formula combined with the vlookup importrange values to neatly sort results that turn up with values split by "/" (slash). 我正在尝试将转置拆分公式与vlookup importrange值结合使用,以对结果进行整洁的排序,这些结果以“ /”(斜杠)拆分的值出现。
Basically, I have a form that needs to be populated from a list of names depending on their roles. 基本上,我需要根据其角色从名称列表中填充表格。 In most cases, one name occupies one role, but I do have some roles for which multiple names are present.
在大多数情况下,一个名字只占一个角色,但是我确实有一些角色具有多个名字。 These are split by an "/" (eg. John Doe/John Smith).
这些用“ /”分隔(例如John Doe / John Smith)。
I am new to this and have not managed to wrap my head around what I might be doing wrong. 我对此并不陌生,也没有设法将自己的想法摆在错误的地方。 My formula currently reads as follows:
我的公式目前显示如下:
=iferror(VLOOKUP(B4,{IMPORTRANGE("1_T8NLkWhTDzK6LjxP09mLlphzfLx15FcZeGSdIKZj4M","'BOE''s B.Sc. (Hon) {Inc. ENG Units}'!A1:F");IMPORTRANGE("1_T8NLkWhTDzK6LjxP09mLlphzfLx15FcZeGSdIKZj4M","'BOE''s M.Sc. (Taught)'!A1:F")},4,0))
The cell used for this formula is B11 and I would like the second name, when present, to be split and listed in cell B14 (or B12 if that is not possible). 用于此公式的单元格为B11,我希望将第二个名称(如果存在)进行拆分并在单元格B14中列出(如果不可能的话,请在B12中列出)。
vLookUp()
will give you just a single value, if I understand you correctly. 如果我理解正确,
vLookUp()
只会给您一个值。 When the formula you provided is on B11
and, say, its result value is John Doe/John Smith
, then you can split it with /
by =split(b11, "/")
. 当您提供的公式位于
B11
并且其结果值为John Doe/John Smith
,则可以使用/
将其=split(b11, "/")
。 Of course it's a horizontal array, so if you want vertical (transposed) result you should use =transpose(split(b11, "/"))
. 当然,它是一个水平数组,因此,如果要获得垂直(转置)结果,则应使用
=transpose(split(b11, "/"))
。 Then B11
will be John Doe
and B12
will be John Smith
. 那么
B11
将是John Doe
, B12
将是John Smith
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.