匹配功能似乎是从公式内返回的?

发布于 2025-01-30 19:43:18 字数 655 浏览 1 评论 0原文

我正在使用此公式来找到最远的右> 单词“移动”的相对位置。

=MATCH("Move",AG5:LM5,1)

唯一的问题是AG5:LM5中的单元格在使用此公式:

=IF(LEFT(KV5,3)="Map","Move",FALSE)

匹配函数似乎总是返回最远的右入口的相对位置,即使最远的右入口是“ false”。

有办法解决这个问题吗?

编辑:

这是一个示例表:

https://docs.google.com/spreadsheets/d/15IDQ0S3LJOPSROSPI-RV-DHH_NM88RJ9HB8WMNDCYJI/Edit

? strong>招募输入,然后返回 map7.8 输入。在 test2 中,我希望它在输入中将最右边的实例拉到位置列中,这是按预期的。

I am using this formula to find the relative position of the furthest right word "Move" in my cells.

=MATCH("Move",AG5:LM5,1)

The only problem is the cells in AG5:LM5 are using this formula:

=IF(LEFT(KV5,3)="Map","Move",FALSE)

The match function always seems to return the relative position of the farthest right entry, even if the farthest right entry is "FALSE".

Is there a way to fix this?

Edit:

Here is an example sheet:

https://docs.google.com/spreadsheets/d/15idQ0s3ljoPSroSPi-Rv-Dhh_Nm88Rj9hB8WmNdCYjI/edit?usp=sharing

For Test1 I want the location column to ignore the Recruit input and instead return the Map7.8 input. In Test2 I want it to pull the rightmost instance with "Map" in the input into the location column, this is acting as intended.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏花。依旧 2025-02-06 19:43:18

您应该使用:

=MATCH("Move", AG5:LM5, 0)

更新

删除范围C3:C中的所有内容,并在C3:

=ARRAYFORMULA(IFNA(VLOOKUP(ROW(D3:D1000), QUERY(SORT(SPLIT(
 FLATTEN(ROW(D3:D1000)&"×"&COLUMN(D3:3)&"×"&
 IF(REGEXMATCH(D3:1000&"", "Map"), D3:1000, )), "×"), 1, 1, 2, ), 
 "where Col3 contains 'Map'"), 3, )))

you should be using:

=MATCH("Move", AG5:LM5, 0)

update

delete everything in range C3:C and use this in C3:

=ARRAYFORMULA(IFNA(VLOOKUP(ROW(D3:D1000), QUERY(SORT(SPLIT(
 FLATTEN(ROW(D3:D1000)&"×"&COLUMN(D3:3)&"×"&
 IF(REGEXMATCH(D3:1000&"", "Map"), D3:1000, )), "×"), 1, 1, 2, ), 
 "where Col3 contains 'Map'"), 3, )))

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文