简体   繁体   English

查找最小数值并返回不同行中的单元格

[英]Find minimum numeric value and return cell in different row

I am looking to find the minimum (numeric value only) of a multi-column range that will have numbers and text values in it and then return a cell from the same column in Row 1.我正在寻找一个多列范围的最小值(仅限数字值),其中包含数字和文本值,然后从第 1 行的同一列返回一个单元格。

For example:例如:

A A B C C D
John约翰 Dave戴夫 Ryan赖安 Nate内特
2 2个 7 7 3 3个 4 4个
5 5个 Apple苹果 1 1个 8 8个
9 9 10 10 Orange橙子 12 12
Banana香蕉 14 14 Kiwi奇异果 16 16

I want to first find the minimum numeric-only value in A2:D5 (which would be 1) and then return the value/cell that corresponds with that column in Row 1 (which would be Ryan).我想首先在 A2:D5 中找到最小的纯数字值(即 1),然后返回与第 1 行中该列对应的值/单元格(即 Ryan)。

I tried the follow formula but it wasn't working properly.我尝试了以下公式,但它无法正常工作。

=INDEX(A1:D1,MIN(IF(ISNUMBER(A2:D5),A2:D5,0)))

for min value only:仅适用于最小值:

=INDEX(MIN(A2:D5))

在此处输入图像描述

and:和:

=+INDEX(SORT(FLATTEN(IF(IFERROR(A2:D5*1)=MIN(A2:D5), A1:D1, ))))

在此处输入图像描述

or:或者:

=INDEX(QUERY({SPLIT(FLATTEN(A1:D1&"♦"&A2:D5), "♦")&""}, 
 "order by Col2 limit 1"))

在此处输入图像描述

暂无
暂无

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

相关问题 如何在当前单元格上方找到最接近的匹配值,并在同一行中返回不同的列? - How can I find the closest matching value ABOVE the current cell, and return a different column in that same row? 获取一行中的最小值及其上方的单元格 - Getting the minimum value in a row and the cell above it (谷歌表格或excel)如何在当前单元格上方找到最接近的匹配值,并在同一行中返回不同的列? - (google sheets or excel) How can I find the closest matching value above the current cell, and return a different column in that same row? Google Sheets:在一行中查找最后一个非空单元格并从不同行中提取单元格值 - Google Sheets: Find last non empty cell in a row and extract cell value from different row 如何找到一行中最小值的索引? - How to find the index of the minimum value in a row? 在一列中查找值并返回另一列中找到的行中指定单元格的值 - Find value in one column and return value of a specified cell in the row found in another column 谷歌应用程序脚本返回单元格中的行值 - google apps script return row value in a cell 查找单元格匹配值并返回行号 - Find Cell Matching Value And Return Rownumber 在多列范围内查找 MINIMUM,从 A 列返回值 - Find MINIMUM in multiple-column range, return value from Column A 按同一行和上面的行中的条件返回单元格值 - Return cell value by criteria in same row AND row above
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM