简体   繁体   English

如何在 excel 列中搜索行名,然后在 Excel 中获取行数据?

[英]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.

相关问题 如何获取 excel 中选定字符串的行、列坐标 - How do i get row,column coordinates on selected String in excel 如何在Excel中将列转置为行 - How do I transpose a column into a row in Excel VBA excel:如何在不选择的情况下将单元格中的数据作为数组获取到同一列中的一行? - VBA excel: How do I get data in cells as an array up one row in the same column without selecting? 如何使用列名和行名将Excel数据导入到R中 - How to import excel data into R using column name and row name 在micosost Excel中,我如何将数据从一行中的多列复制到同一行中的一列 - In micosost excel how do i copy data from multiple columns in a row to one column in same row Excel / VB-如何遍历每个行/列,并根据值进行格式化? - Excel / VB - How do I loop through each row/column and do formatting based on the value? 如何在Excel表格中搜索文本,然后删除整个行? - How do I search a excel table for a text and then delete that entire row? 我如何获取python在CSV文件中搜索字典中的项目,然后打印出整个Excel行…谢谢 - How do I get python to search a csv file for items in a dictionary then print out the entire excel row…Thanks 如何将 excel 列数据转换为行数据 - how to convert excel column data to row data Excel-VBA-Campare,并在每行中搜索几列 - Excel-VBA - Campare & search through several column in each row
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM