有条件的vlook in excel

发布于 2025-01-30 06:18:27 字数 407 浏览 3 评论 0原文

我有一个用于卖方名称和销售的表

在此处输入图像描述

我正在与:< a href =“ https://i.sstatic.net/pc9ug.png” rel =“ nofollow noreferrer”>在此处输入映像说明

用于标记i使用简单的vlook up up formula,但对于susan,对于Susan,它正在返回其他查看其他信息。我希望它应该查看其他分配苏珊的标记的地方。它应该再次转到卖方列,并在Susan列中查找Mark并返回300,而不是看到其他列,然后返回140 for Stephan。我如何制作公式可以正确返回标记的价值以及苏珊?

I have a table for seller name and sales

enter image description here

I am matching data for : enter image description here

For Mark I an use simple vlook up formula but for Susan it is returning see other. I want that it should look on other where Mark is assigned for Susan. It should go to again seller column and look for Mark and return 300 in Susan column instead of see other and return 140 for stephan. How can I make formula which can return value for Mark as well as Susan correctly?

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

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

发布评论

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

评论(2

乖乖公主 2025-02-06 06:18:27

这是一个令人困惑的表设置,但是下面的公式应该起作用。只需将{name_cell}替换为指向标记或苏珊的任何单元格。

=IF(INDEX(Table1[Sales],MATCH({name_cell},Table1[Seller],0))="see other",
INDEX(Table1[Sales],MATCH(INDEX(Table1[Other],MATCH({name_cell},Table1[Seller],0)),Table1[Seller],0)),
INDEX(Table1[Sales],MATCH({name_cell},Table1[Seller],0)))

It's a bit of a confusing table setup, but the below formula should work. Just replace the {name_cell} with whatever cell is pointing to Mark or Susan.

=IF(INDEX(Table1[Sales],MATCH({name_cell},Table1[Seller],0))="see other",
INDEX(Table1[Sales],MATCH(INDEX(Table1[Other],MATCH({name_cell},Table1[Seller],0)),Table1[Seller],0)),
INDEX(Table1[Sales],MATCH({name_cell},Table1[Seller],0)))
污味仙女 2025-02-06 06:18:27

使用vlookup +if函数尝试此公式解决方案。

f2中,公式已复制:

=IFERROR(VLOOKUP(VLOOKUP(E2,IF({1,0},$B$1:$B$7,$A$1:$A$7),2,0),$B$2:$C$7,2,0),VLOOKUP(E2,$B$2:$C$7,2,0))

Try this formula solution using Vlookup +If function.

In F2, formula copied down :

=IFERROR(VLOOKUP(VLOOKUP(E2,IF({1,0},$B$1:$B$7,$A$1:$A$7),2,0),$B$2:$C$7,2,0),VLOOKUP(E2,$B$2:$C$7,2,0))

enter image description here

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