索引匹配返回错误的值

kyle.macleod
kyle.macleod ✭✭
编辑12/09/19 公式和函数

任何人能够帮助索引/匹配公式,返回一个错误的值?

我们有一个公式返回了一个错误的值。我相信这个公式是正确的(和我用。xls格式写的一样)。我们在公式中引用了另一个Smartsheet。

我明白如果我得到一个错误(#无效值,#不匹配),但在这里我们得到一个预期的结果,但它是错误的值。

公式:=INDEX(({SPB 2019 Range 1}), MATCH([SPB #]1, {SPB 2019 Range 2}), 1)

(我试过删除最后一个,没有区别)。

如果有帮助的话:

SPB2019范围1:下拉列表

SPB # 1: Text /号码

SPB2019范围2:自动编号

在这个例子中,我们得到了一个可能的值,"completed",尽管正确的值实际上是"正在执行"

第二个问题是,我们很快就达到了总链接数的限制,尽管我们离宣传的限制还差得远。

我们花了很多时间来解决这个问题。希望有人能帮忙,因为我显然不够聪明。提前感谢。

答案

  • 她名叫Stara
    她名叫Stara ✭✭✭✭✭✭

    嗨,凯尔,

    试着把最后的1改为0。

    奏效了吗?

    希望这对你有帮助!

    祝你一周愉快!

    最好的

    她名叫Stara

    工作流程顾问/ CEO @ WORK BOLD

    智能表专家顾问兼合伙人

    她名叫Stara|工作流程顾问/ CEO @工作大胆

    W:www.workbold.com| E:(电子邮件保护)| p: +46 (0) - 72 - 510 99 35

    请随时与我联系,了解有关Smartsheet,集成,一般工作流建议或其他方面的帮助。

  • 你好,安德里,遗憾的是,这不起作用。我也试了无数2 -1....

    谢谢你的努力,但我的问题仍然存在。

    凯尔

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭

    是否有空行或未使用的行?也许在顶部有一个标题行?尝试更改匹配的值,看看是否有一致的差异。也许它每次都会从正确值上方3行处拉出值或其他影响。

    thinkspi.com

  • 她名叫Stara
    她名叫Stara ✭✭✭✭✭✭

    很乐意帮忙!

    我同意保罗下面的评论。

    你能更详细地描述一下你的过程吗?也许可以分享一下表格之类的截图?(在分享之前删除/替换任何机密/敏感信息)这样更容易提供帮助。(分享,(电子邮件保护)

    智能表专家顾问兼合伙人

    她名叫Stara|工作流程顾问/ CEO @工作大胆

    W:www.workbold.com| E:(电子邮件保护)| p: +46 (0) - 72 - 510 99 35

    请随时与我联系,了解有关Smartsheet,集成,一般工作流建议或其他方面的帮助。

  • kyle.macleod
    kyle.macleod ✭✭
    编辑09/08/19

    我们链接到的SS数据中有空白行。还在等式的末尾加上了,0:

    =INDEX([SPB #]1, {SPB 2019 Range SPB}, 0))

    问题就在这里。最初,在删除引用表中的空行并添加“0”后,公式正常工作。

    30分钟后,价值观又崩溃了。顺便说一句,我只有查看引用表的权限(管理员对我的)。此外,还有数百人可以访问此参考表,可能有5-10人在任何给定的时间进行更新。

    你知道为什么它们会起作用,然后又神秘地不起作用吗?

  • 这是这个论坛喜欢的格式的截图。

    截图SS.png

  • 从引用的(仅限视图)工作表中删除空白行,以及在公式末尾添加,0,似乎已经纠正了公式,至少是暂时的。这是好的大约30分钟,直到有人再次添加空白行。

    如果有一种方法使公式对额外的行不敏感,那就太好了。

    感谢您提供的信息和帮助。

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭

    好的。所以我要提前道歉。我还在努力摆脱“假期脑”,所以我很难让我的头脑回到我问空行时的状态。我有一个解决方案,但是你需要尝试一下,看看哪种方法更适合你。

    使用COUNTIFS对空白行进行基本计数,然后从MATCH函数生成的数字中相应地添加或减去这个数字,MATCH函数决定INDEX语句的行号。

    像这样的东西……

    =INDEX([SPB #]1, {SPB 2019 Range SPB}, 0)- COUNTIFS({SPB 2019范围XYZ}, ISBLANK(@cell))

    你可能需要把-改成+。您可能还需要合并数字10,无论是添加还是减去,以及在每个工作表的底部有默认的10个空白行。

    再一次。很抱歉,我不能给出更具体的解决方案。我在河上划了三天皮艇,我的大脑还在与“工作”的事情作斗争。以上是总体思路。

    如果你能让它工作,请告诉我。如果没有,等我接受了我必须坐在桌子后面而不是鱼竿后面的事实后,我会再来检查一下。哈哈。

    thinkspi.com

  • 凯拉问
    凯拉问 ✭✭
    编辑09/30/22

    @Andree Stara@Paul新来的我在这里插话,因为我也遇到了类似的问题。

    我使用以下函数:=IFERROR(INDEX({事项报告范围1},MATCH([Legal Tracker Matter Tracker ID]@row,{事项报告范围2}),0),“NOT IN OMR”)

    image.png

    41032184不存在于查找表(事项报告)中,因此它应该返回“not in OMR”。

    但是,它返回与查找值41010316相关联的值。


    image.png

    我尝试将0更改为-1,这是有效的,但它搞砸了我的INDEX/MATCH函数的其余部分。到底发生了什么事?我如何确保所有功能的一致性?

    编辑:如果有帮助,同样的事情发生在没有匹配的行上,我希望“NOT IN OMR”返回。也许这不能很好地发挥IFERROR?

    编辑(再次):我删除了IFERROR,我仍然得到相同的不正确的返回值。

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭

    @Kayla问看起来第一个屏幕截图中的Lookup值被存储为文本值(除非您对单元格进行了格式化)。有没有可能在参考资料表的同一栏中有一些文本和一些数值?

    thinkspi.com

  • @Paul新来的

    认为这被设置为数字格式(见下文)。数字前面没有“”表示文本格式。还有什么我需要做的吗?


    image.png


  • @Paul新来的我想明白了!我的"0"写错了-_-

  • 保罗新来的
    保罗新来的 ✭✭✭✭✭✭

    @Kayla问这样就行了。很抱歉我也错过了,但很高兴你能找到它。

    thinkspi.com

帮助文章参考资料欧宝体育app官方888

想要直接在智能表中练习使用公式吗?

请查看公式手册模板!
@CamSME<\/a> you'll use join and collect with children or decedents as the range. This video might help.<\/p>
\n \n https:\/\/youtu.be\/Dzo0UYjxMmI\n <\/a>\n<\/div>


<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":106286,"type":"question","name":"Health Bubble Turn Colors when Status is Updated","excerpt":"Hello, I am new to Smartsheet. I am trying to get when I change my Status to \"Not Started\" I want the Health bubble to automatically turn grey. And when I change my Status to \"In Progress\" the Health bubble will turn yellow, etc. So far I have: IF(Status1 = \"Not Started\", \"Gray\", \" \"). I want it to change color for each…","categoryID":322,"dateInserted":"2023-06-09T19:29:22+00:00","dateUpdated":"2023-06-09T20:02:36+00:00","dateLastComment":"2023-06-09T21:14:52+00:00","insertUserID":162263,"insertUser":{"userID":162263,"name":"clairehunter","url":"https:\/\/community.smartsheet.com\/profile\/clairehunter","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-10T18:54:18+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":162263,"lastUserID":150413,"lastUser":{"userID":150413,"name":"Kleerfyre","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Kleerfyre","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0FA9VDUULUEH\/n4HMXW6FGST3I.jpg","dateLastActive":"2023-06-09T21:50:34+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":26,"score":null,"hot":3372684854,"url":"https:\/\/community.smartsheet.com\/discussion\/106286\/health-bubble-turn-colors-when-status-is-updated","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106286\/health-bubble-turn-colors-when-status-is-updated","format":"Rich","tagIDs":[254,440],"lastPost":{"discussionID":106286,"commentID":379933,"name":"Re: Health Bubble Turn Colors when Status is Updated","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379933#Comment_379933","dateInserted":"2023-06-09T21:14:52+00:00","insertUserID":150413,"insertUser":{"userID":150413,"name":"Kleerfyre","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Kleerfyre","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/0FA9VDUULUEH\/n4HMXW6FGST3I.jpg","dateLastActive":"2023-06-09T21:50:34+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-10T18:54:41+00:00","dateAnswered":"2023-06-09T21:14:52+00:00","acceptedAnswers":[{"commentID":379933,"body":"

You will need a nested IF formula:<\/p>

=IF(Status@row=\"Not Started\", \"Gray\", IF(Status@row=\"In Progress\", \"Yellow\", IF(Status@row=\"Complete\", \"Green\")))<\/p>


<\/p>

Just add more IF Statements like above for what you need. Put all ) at the very end. Then you can turn it into a column formula by right clicking the cell the formula is in and selecting column formula.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"},{"tagID":440,"urlcode":"project-management","name":"Project Management"}]},{"discussionID":106265,"type":"question","name":"If Date is blank + past formula","excerpt":"I can't figure out why this would return a \"yes\" when the date cell is blank. =IF([Date of Site Survey (Product)]@row = \" \", \" \", IF(TODAY() > [Date of Site Survey (Product)]@row, \"yes\", \" \")) Intended logic\/result - If date cell is blank, then \"blank\" (this worked when I tried without the 2nd argument added) If date is in…","categoryID":322,"dateInserted":"2023-06-09T14:00:25+00:00","dateUpdated":null,"dateLastComment":"2023-06-09T23:14:36+00:00","insertUserID":162220,"insertUser":{"userID":162220,"name":"dhawkins","title":"Product Manager","url":"https:\/\/community.smartsheet.com\/profile\/dhawkins","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-06-09T20:05:00+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":45516,"lastUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-10T20:34:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":31,"score":null,"hot":3372673501,"url":"https:\/\/community.smartsheet.com\/discussion\/106265\/if-date-is-blank-past-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106265\/if-date-is-blank-past-formula","format":"Rich","lastPost":{"discussionID":106265,"commentID":379953,"name":"Re: If Date is blank + past formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/379953#Comment_379953","dateInserted":"2023-06-09T23:14:36+00:00","insertUserID":45516,"insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-10T20:34:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-09T14:28:35+00:00","dateAnswered":"2023-06-09T14:12:11+00:00","acceptedAnswers":[{"commentID":379830,"body":"

Try this:<\/p>

=IF([Date of Site Survey (Product)]@row <> \"//www.santa-greenland.com/community/discussion/56531/\", IF(TODAY() > [Date of Site Survey (Product)]@row, \"yes\", \"no\"))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","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":[]}],"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

公式和函数趋势