简体   繁体   English

将转置拆分与Vlookup和Importrange一起使用-Google表格

[英]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 DoeB12将是John Smith

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 QUERY、IMPORTRANGE 和 TRANSPOSE 从不同的谷歌表格中提取数据? - Extract data from different google sheets using QUERY, IMPORTRANGE and TRANSPOSE? 使用 Google 表格查询+VLOOKUP+IMPORTRANGE - QUERY+VLOOKUP+IMPORTRANGE w/ Google Sheets Google App Scripts & Google Sheets - 相当于 VLOOKUP/IMPORTRANGE - 使用多个电子表格 - Google App Scripts & Google Sheets - Equivalent of VLOOKUP/IMPORTRANGE - Using multiple spreadsheets 使用带有两个查找值的 VLOOKUP,同时使用 IMPORTRANGE 合并三个 Google 表格 - Using VLOOKUP with two lookup values while using IMPORTRANGE to merge three Google Sheets 在 Google 表格中使用 importrange 和 Sumifs - Using importrange with Sumifs in Google Sheets 如何在 Google 表格的非顺序列中使用多个条件来使用 VLOOKUP + QUERY + IMPORTRANGE? - How can I uso VLOOKUP + QUERY + IMPORTRANGE using multiple conditions in non-sequential columns in Google Sheets? 如何在 Google 表格中汇总使用 VLOOKUP 和 IMPORTRANGE 获得的结果? - How to sum results obtained with VLOOKUP and IMPORTRANGE in Google Sheets? 转置,拆分和合并Google表格 - Transpose, Split, and Join Google Sheets 谷歌表格拆分转置加入 - Google Sheets Split Transpose Join 使用 Countif、Vlookup 和 Importrange - Using Countif, Vlookup and Importrange
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM