[英]Grouping data in google sheets?
I want to know how I could group the information from google sheets such that I can form groups with 3 team members.我想知道如何将谷歌表格中的信息分组,以便我可以与 3 名团队成员组成小组。 I want to be able to copy information of a registrants details (if the number of team members is under 3) and then paste it into the column above such that it can form a team of 3. The sorted list should look something like this.
我希望能够复制注册人详细信息的信息(如果团队成员人数少于 3 人),然后将其粘贴到上面的列中,这样它就可以组成一个 3 人团队。排序后的列表应该看起来像这样。
unsorted array sample未排序的数组样本
sorted array sample排序数组样本
I've tried using some google sheets functions such as VLOOKUP, what java/python APIs would you recommend to solve this problem.我试过使用一些谷歌表格函数,比如 VLOOKUP,你会推荐什么 java/python API 来解决这个问题。
"entry": [{
"id": {
"$t": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cokwr"
},
"updated": {
"$t": "2020-07-28T09:58:17.850Z"
},
"category": [{
"scheme": "http://schemas.google.com/spreadsheets/2006",
"term": "http://schemas.google.com/spreadsheets/2006#list"
}],
"title": {
"type": "text",
"$t": "Dan"
},
"content": {
"type": "text",
"$t": "registrantlastname: M, registrantsemailadress: dan@gmail.com, secondmemebersfullname: MatL, secondmembersemail: mal@gmail.com, thirdmembersfullname: Oscar, thirdmembersemailaddress: radio@hotmail.com, teammembers: 3"
},
"link": [{
"rel": "self",
"type": "application/atom+xml",
"href": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cokwr"
}],
"gsx$registrantfirstname": {
"$t": "Dan"
},
"gsx$registrantlastname": {
"$t": "M"
},
"gsx$registrantsemailadress": {
"$t": "dan@gmail.com"
},
"gsx$secondmemebersfullname": {
"$t": "MatL"
},
"gsx$secondmembersemail": {
"$t": "mal@gmail.com"
},
"gsx$thirdmembersfullname": {
"$t": "Oscar"
},
"gsx$thirdmembersemailaddress": {
"$t": "radio@hotmail.com"
},
"gsx$teammembers": {
"$t": "3"
}
}, {
"id": {
"$t": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cpzh4"
},
"updated": {
"$t": "2020-07-28T09:58:17.850Z"
},
"category": [{
"scheme": "http://schemas.google.com/spreadsheets/2006",
"term": "http://schemas.google.com/spreadsheets/2006#list"
}],
"title": {
"type": "text",
"$t": "Mariana"
},
"content": {
"type": "text",
"$t": "registrantlastname: Fake, registrantsemailadress: mari.fake@itesm.ru, secondmemebersfullname: Johnathan, secondmembersemail: jan@gmail.com, teammembers: 2"
},
"link": [{
"rel": "self",
"type": "application/atom+xml",
"href": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cpzh4"
}],
"gsx$registrantfirstname": {
"$t": "Mariana"
},
"gsx$registrantlastname": {
"$t": "Fake"
},
"gsx$registrantsemailadress": {
"$t": "mari.fake@itesm.ru"
},
"gsx$secondmemebersfullname": {
"$t": "Johnathan"
},
"gsx$secondmembersemail": {
"$t": "jan@gmail.com"
},
"gsx$thirdmembersfullname": {
"$t": ""
},
"gsx$thirdmembersemailaddress": {
"$t": ""
},
"gsx$teammembers": {
"$t": "2"
}
}, {
"id": {
"$t": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cre1l"
},
"updated": {
"$t": "2020-07-28T09:58:17.850Z"
},
"category": [{
"scheme": "http://schemas.google.com/spreadsheets/2006",
"term": "http://schemas.google.com/spreadsheets/2006#list"
}],
"title": {
"type": "text",
"$t": "Lorem"
},
"content": {
"type": "text",
"$t": "registrantlastname: Ipsum, registrantsemailadress: lorem@gmail.com, teammembers: 1"
},
"link": [{
"rel": "self",
"type": "application/atom+xml",
"href": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/cre1l"
}],
"gsx$registrantfirstname": {
"$t": "Lorem"
},
"gsx$registrantlastname": {
"$t": "Ipsum"
},
"gsx$registrantsemailadress": {
"$t": "lorem@gmail.com"
},
"gsx$secondmemebersfullname": {
"$t": ""
},
"gsx$secondmembersemail": {
"$t": ""
},
"gsx$thirdmembersfullname": {
"$t": ""
},
"gsx$thirdmembersemailaddress": {
"$t": ""
},
"gsx$teammembers": {
"$t": "1"
}
}, {
"id": {
"$t": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/chk2m"
},
"updated": {
"$t": "2020-07-28T09:58:17.850Z"
},
"category": [{
"scheme": "http://schemas.google.com/spreadsheets/2006",
"term": "http://schemas.google.com/spreadsheets/2006#list"
}],
"title": {
"type": "text",
"$t": "Ki"
},
"content": {
"type": "text",
"$t": "registrantlastname: C, registrantsemailadress: abc@live.com, teammembers: 1"
},
"link": [{
"rel": "self",
"type": "application/atom+xml",
"href": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/chk2m"
}],
"gsx$registrantfirstname": {
"$t": "Ki"
},
"gsx$registrantlastname": {
"$t": "C"
},
"gsx$registrantsemailadress": {
"$t": "abc@live.com"
},
"gsx$secondmemebersfullname": {
"$t": ""
},
"gsx$secondmembersemail": {
"$t": ""
},
"gsx$thirdmembersfullname": {
"$t": ""
},
"gsx$thirdmembersemailaddress": {
"$t": ""
},
"gsx$teammembers": {
"$t": "1"
}
}, {
"id": {
"$t": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/ciyn3"
},
"updated": {
"$t": "2020-07-28T09:58:17.850Z"
},
"category": [{
"scheme": "http://schemas.google.com/spreadsheets/2006",
"term": "http://schemas.google.com/spreadsheets/2006#list"
}],
"title": {
"type": "text",
"$t": "jane"
},
"content": {
"type": "text",
"$t": "registrantlastname: Ong, registrantsemailadress: j.ong@live.com, secondmemebersfullname: john Ong, secondmembersemail: j.ong@live.com, teammembers: 2"
},
"link": [{
"rel": "self",
"type": "application/atom+xml",
"href": "https://spreadsheets.google.com/feeds/list/1sjPsuoIZOJWRLLcJlvZbvKuHnGn6KfaqLLa3rpSXmR0/od6/public/values/ciyn3"
}],
"gsx$registrantfirstname": {
"$t": "jane"
},
"gsx$registrantlastname": {
"$t": "Ong"
},
"gsx$registrantsemailadress": {
"$t": "j.ong@live.com"
},
"gsx$secondmemebersfullname": {
"$t": "john Ong"
},
"gsx$secondmembersemail": {
"$t": "j.ong@live.com"
},
"gsx$thirdmembersfullname": {
"$t": ""
},
"gsx$thirdmembersemailaddress": {
"$t": ""
},
"gsx$teammembers": {
"$t": "2"
}
}]
}
This problem should be for a large dataset like this.这个问题应该是针对像这样的大型数据集。
From here onwards, you can collect all who are in groups of 2 by selecting the filter icon in top right corner view and split them into groups of 1 using VLOOKUP and drag it down to repeat itself.从这里开始,您可以通过选择右上角视图中的过滤器图标来收集所有 2 人一组,然后使用 VLOOKUP 将它们分成 1 人一组,然后向下拖动以重复。
Finally, combine the 1s together and use HLOOKUP functions to get the correct names and indexes.最后,将 1 组合在一起并使用 HLOOKUP 函数获取正确的名称和索引。 For the team members just enter values (3,1,1).
对于团队成员,只需输入值 (3,1,1)。 This will give you the array you want.
这将为您提供所需的数组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.