[英]How do I search through an excel column for a row name and then get the row data in Excel?
Example:例子:
I have a table (space = new column)我有一张桌子(空格=新列)
Spain 5 2 8 0西班牙 5 2 8 0
Italy 2 8 8 1意大利 2 8 8 1
China 1 7 7 7中国 1 7 7 7
Canada 0 2 0 5加拿大 0 2 0 5
Every time I paste a new table in, the countries will be ranked in order of the first number.每次我粘贴一个新表时,国家都会按照第一个数字的顺序排列。 Largest at the top.顶部最大。
This is what I want to do:这就是我想要做的:
Get the rows and sort them into continents.获取行并将它们分类为大洲。 Europe, Asia and North America.欧洲、亚洲和北美。
How do I find the country name in the first column and copy the row data to another table?如何在第一列中找到国家名称并将行数据复制到另一个表中?
Asuming you have a Country||Continent||Index table ("MapTable"), I would: 1.- Using formula: polulate such "MapTable" with vlookup/index+match/sumif from your "Paste table" and sort by Continent.假设您有一个 Country||Continent||Index 表(“MapTable”),我会: 1.- 使用公式:使用“粘贴表”中的 vlookup/index+match/sumif 填充此类“MapTable”并按大陆排序.
2.- Using PowerQuery: I would get the "Paste table", merge it with the "MapTable", sort within PowerQuery by index, and export to a new table (with or without continent/index columns). 2.- 使用 PowerQuery:我会得到“粘贴表”,将其与“MapTable”合并,在 PowerQuery 中按索引排序,然后导出到新表(有或没有大陆/索引列)。
3.- VBA... I probably wouldn´t use it. 3.- VBA ...我可能不会使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.