查找最大值并返回匹配的列标头

大家好!

我必须在一个过程中使用智能表单检查几个空腔。然后,在这个数据库中,我想知道最高和最低的空腔权重以及空腔#。我想知道我该怎么做。


下面是一个例子:

image.png


如果空腔2的值最高,空腔1的值最低。我想发送一封具有最低空腔#和值,以及最高空腔#和值的电子邮件。知道怎么做吗?


我认为,通过在文件末尾创建4个额外的列——(1)体重不足的空腔,(2)体重不足的值,(3)超重的空腔,(4)超重的值——可以获得这些信息,然后使用这些列来设置我的电子邮件结构。


邮件结构:空腔X的值为XXX,空腔Y的值为YYY。


谢谢你的帮助!

最好的答案

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭
    ✓回答

    我将开始使用最小和最大函数拉低和高的数字。


    =MIN([空腔1]@row:[空腔3]@row)

    =MAX([空腔1]@row:[空腔3]@row)


    然后可以使用MATCH函数拉出相应的空腔数。


    ="空腔" + MATCH([欠重值]@row,[空腔1]@row:[空腔3]@row, 0)

    ="空腔" + MATCH([超重值]@row,[空腔1]@row:[空腔3]@row, 0)

    thinkspi.com

  • 艾萨克·盖拉多
    ✓回答

    伙计们,


    非常感谢你的回答。但是,我仍然面临着一些问题,我正在工作的表。

    每个腔有三种不同的检查。如果我有3个蛀牙,表格会显示:

    龋齿-肩部

    空腔-面板

    空腔-底座

    我只对获得基座上的重量变化感兴趣。我有这样的东西

    image.png

    现在,当我试着用你给我的公式。一直只显示空腔1。我认为这是因为公式应用于行中的特定单元格,而不是所有行。想办法解决这个问题。


    image.png


    即使我体重过轻被关在2号洞。公式显示腔1。我能解决这个问题吗?

    image.png


答案

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭
    ✓回答

    我将开始使用最小和最大函数拉低和高的数字。


    =MIN([空腔1]@row:[空腔3]@row)

    =MAX([空腔1]@row:[空腔3]@row)


    然后可以使用MATCH函数拉出相应的空腔数。


    ="空腔" + MATCH([欠重值]@row,[空腔1]@row:[空腔3]@row, 0)

    ="空腔" + MATCH([超重值]@row,[空腔1]@row:[空腔3]@row, 0)

    thinkspi.com

  • 马克要崩溃的
    马克要崩溃的 ✭✭✭✭✭✭

    @Isaac盖拉多

    这就是你要找的吗?

    如果你的蛀牙按照从左到右的升序排列,这个方法就有效了。您需要调整空腔范围,使其包括所有的空腔列:

    Value [Underweight Cavity]: =MIN([Cavity 1]:[Cavity 3])

    Value[超重腔]:=MAX([腔1]:[腔3])

    空腔#[欠重空腔]:=MATCH([欠重空腔]@row,[空腔1]@row:[空腔3]@row))

    空腔#[超重空腔]:=MATCH([超重空腔]@row,[空腔1]@row:[空腔3]@row))

    工作吗?

    马克


    我很感谢你的"投票支持"或"有见地"感谢您对社区的贡献。

  • 艾萨克·盖拉多
    ✓回答

    伙计们,


    非常感谢你的回答。但是,我仍然面临着一些问题,我正在工作的表。

    每个腔有三种不同的检查。如果我有3个蛀牙,表格会显示:

    龋齿-肩部

    空腔-面板

    空腔-底座

    我只对获得基座上的重量变化感兴趣。我有这样的东西

    image.png

    现在,当我试着用你给我的公式。一直只显示空腔1。我认为这是因为公式应用于行中的特定单元格,而不是所有行。想办法解决这个问题。


    image.png


    即使我体重过轻被关在2号洞。公式显示腔1。我能解决这个问题吗?

    image.png


You will have to get an admin of Teams to allow the Smartsheet for Teams app in the admin console of Teams.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":106398,"type":"question","name":"Is there a way to send a multiple-row update request that allows multiple (as-you-go) submissions?","excerpt":"New user and new to the community. Trying to figure out if there's a way to send a multiple-row update request that allows the requestee to submit one row update at a time, save along the way, and\/or use the update request link multiple times vs. the requestee having to provide every row update before clicking submit.…","categoryID":321,"dateInserted":"2023-06-13T20:49:40+00:00","dateUpdated":null,"dateLastComment":"2023-06-14T15:59:53+00:00","insertUserID":162342,"insertUser":{"userID":162342,"name":"mgreenwalt","title":"coordinator","url":"https:\/\/community.smartsheet.com\/profile\/mgreenwalt","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-14T15:22:47+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":8888,"lastUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-06-15T00:27:46+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":36,"score":null,"hot":3373449573,"url":"https:\/\/community.smartsheet.com\/discussion\/106398\/is-there-a-way-to-send-a-multiple-row-update-request-that-allows-multiple-as-you-go-submissions","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106398\/is-there-a-way-to-send-a-multiple-row-update-request-that-allows-multiple-as-you-go-submissions","format":"Rich","tagIDs":[446],"lastPost":{"discussionID":106398,"commentID":380525,"name":"Re: Is there a way to send a multiple-row update request that allows multiple (as-you-go) submissions?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/380525#Comment_380525","dateInserted":"2023-06-14T15:59:53+00:00","insertUserID":8888,"insertUser":{"userID":8888,"name":"Andrée Starå","title":"Smartsheet Expert Consultant & Partner | Workflow Consultant \/ CEO @ WORK BOLD","url":"https:\/\/community.smartsheet.com\/profile\/Andr%C3%A9e%20Star%C3%A5","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0PAU3GBYQLBT\/nXWM7QXGD6464.jpg","dateLastActive":"2023-06-15T00:27:46+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Using Smartsheet","url":"https:\/\/community.smartsheet.com\/categories\/using-smartsheet"},{"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-14T15:22:45+00:00","dateAnswered":"2023-06-13T22:19:44+00:00","acceptedAnswers":[{"commentID":380402,"body":"

Hi @mgreenwalt<\/a> <\/p>

I hope you're well and safe!<\/p>

Here's a possible workaround or workarounds <\/strong><\/p>