简体   繁体   English

excel-我需要从a列匹配be列的值,并在与b列相邻的单元格中返回一个值

[英]excel - i need to take a value from column a match to column be and return a value in a cell adjacent to column b

sheet 1 Column A contains a list of players names. 表格1列A包含玩家名称列表。 Beside their name is their ranking (1-200) Sheet 2 contains the same setup but the rankings are from a different website, so players names will not match character for character. 他们的名字旁边是他们的排名(1-200)。工作表2包含相同的设置,但排名来自其他网站,因此玩家名称将不相同。 one site might list player as CJ anderson, another site site might list player as CJ Anderson 一个站点可能会将玩家列为CJ Anderson,另一个站点可能会将玩家列为CJ Anderson

What I want to do is create a sheet that will list a players name and in the adjacent columns show their rankings from each site 我想要做的是创建一张工作表,该工作表将列出球员姓名,并在相邻列中显示每个站点的球员排名

example Player name CBS Rank ESPN Rank NFL rank 示例球员名称CBS排名ESPN排名NFL排名

I need to take a players name, search a column for it in another sheet, and return the adjacent value (players rank) 我需要输入一个玩家名称,在另一张表格中搜索该列,然后返回相邻的值(玩家排名)

I've tried using vlookup without success 我尝试使用vlookup失败

So any of the lookup or indexing functions or advanced if functions will treat cj Anderson as different from cj anderson. 因此,任何查找或索引函数或高级(如果函数会将cj Anderson都视为与cj Anderson不同)。 Your answer will require some data cleaning. 您的答案将需要一些数据清除。 But to remove the periods in that case, try =substitute ((cell that cj Anderson is in), ".", ""). 但是,在这种情况下,要删除句点,请尝试= substitute((cj Anderson所在的单元格),“。”,“”)。 That should turn cj Anderson into cj anderson. 那应该将cj Anderson变成cj Anderson。

There is no way to do this fully automatically. 无法完全自动执行此操作。 But you can clean up the data to get yourself close. 但是您可以清理数据以使自己接近。 In addition to substitute use trim to remove extraneous spaces before and after. 除了替代之外,还可以使用修剪在前后去除多余的空间。 Then use Text to Columns to get last names. 然后使用“文本到列”获取姓氏。 Add a column that counts the frequency of each last name, and then filter to counts >1 so you only work on people with the same last name as unique last names will allow you look up that way. 添加一列来统计每个姓氏的出现频率,然后过滤以计数> 1,这样您就只能使用与唯一姓氏具有相同姓氏的人来进行查找。

暂无
暂无

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

相关问题 Excel公式匹配A列中的值,并且不返回空白列B - Excel formula match value in column A and return not blank cell column B 将单元格中的值与现有列匹配并返回相邻单元格文本 - Match Value in Cell to an Existing Column and Return Adjacent Cell Text Excel索引匹配并返回“是”或“否”(如果相邻列中存在值) - Excel Index Match and return “Yes” or “No” If value is present in adjacent column 从多个列中查找最大值并从相邻列中返回单元格值-Excel - Find max value from multiple columns and return cell value from adjacent column - Excel 在Excel中,如何使一列采用非A的列A的值,否则采用B列的值? - In Excel, how do I make a column take on the value of column A if it's not NA and otherwise take on the value of column B? Excel条件格式,如果列A包含任何值高亮显示列B中的相邻单元格 - Excel Conditional Formatting If Column A Contains ANY Value Highlight Adjacent Cell In Column B Excel公式基于B列中的相对像元值返回A列中的像元值 - Excel formula to return value of cell in column A based off the relative cell value in column B Excel 2003:将A列中的值与B列匹配,然后从B列中提取数据 - Excel 2003: Match value in column A with column B, then pull data from column B Excel-检查值是否存在于另一个工作表的列中并返回相邻列 - Excel - Check if value exists in a column in another worksheet and return adjacent column 擅长:在列中查找值,其中单元格包含多个用逗号分隔的值,并从相邻列返回值 - excel: Find value in column where cells contain multiple values separated by commas and return value from an adjacent column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM