Google电子表格使用VLOOK UP获得多个结果(Google spreadsheet Multiple result with VLOOK UP)
单独工作的VLOOKUP公式是
=if(VLOOKUP(E2,DB!$C:$E,1,0)>0,"COMPLETED",) =if(VLOOKUP(E2,DB!$F:$H,1,0)>0,"IN PROGRESS",)
问题是在单个单元格中显示两个结果时,我想出的公式是
C2=if(AND(VLOOKUP(E4,DB!$C:$E,1,0)>0),"COMPLETED",if(VLOOKUP(E4,DB!$F:$H,1,0)>0,"IN PROGRESS","UNDEFINED"))
我已经使用VLOOKUP以外的正常条件测试了公式,它没有任何问题,不确定它有什么问题。
Example : C10=if(AND(E10=1),"ONE",if(E10=2,"TWO","NO DATA"))
任何帮助赞赏。 可能是它的简单但我在最后3个小时拉我的头发。
谢谢 :)
/ ----------------------- /更新于03.05.2016
很抱歉我发布的评论是因为我是新手使用Stack overflow。
我只尝试过没有任何AND条件的IF语句,但结果仍然相同。 VLOOKUP未返回第二个值。
C15=IF(VLOOKUP(E15,DB!$F:$H,1,0)>0,"COMPLETED",if(VLOOKUP(E15,DB!$F:$H,1,0)>0,"IN PROGRESS","UNDEFINED"))
我期望在单元格C2(sheet1)中检查单元格E2中的值与列C:H(表2 / DB)。 如果它属于列C:C in(sheet2 / DB)那么C2(sheet1)中的值应显示为“Completed”否则如果值在F列中:F(sheet2 / DB)则在C2(sheet1)中应该显示显示“进行中”。
链接到我的电子表格链接
The VLOOKUP formulas which works individually are
=if(VLOOKUP(E2,DB!$C:$E,1,0)>0,"COMPLETED",) =if(VLOOKUP(E2,DB!$F:$H,1,0)>0,"IN PROGRESS",)
The issue is while displaying both results in a single cell, the formula which I came up for this was
C2=if(AND(VLOOKUP(E4,DB!$C:$E,1,0)>0),"COMPLETED",if(VLOOKUP(E4,DB!$F:$H,1,0)>0,"IN PROGRESS","UNDEFINED"))
I have tested the formula with normal conditions other than VLOOKUP and it works without any issues, not sure what's wrong with it.
Example : C10=if(AND(E10=1),"ONE",if(E10=2,"TWO","NO DATA"))
Any help appreciated. May be its something simple but I am pulling my hair out for the last 3 hours.
Thanks :)
/-----------------------/Updated 03.05.2016
Sorry for the comments that I have posted as I am new at using Stack overflow.
I have tried with only IF statements without any AND conditions, but the result is still same. The VLOOKUP is not returning the second value.
C15=IF(VLOOKUP(E15,DB!$F:$H,1,0)>0,"COMPLETED",if(VLOOKUP(E15,DB!$F:$H,1,0)>0,"IN PROGRESS","UNDEFINED"))
What I am expecting in cell C2 (sheet1) is check the values in cell E2 against the columns C:H ( Sheet 2/ DB). If it belongs to Column C:C in (sheet2/DB) then the value in C2 (sheet1) should display as "Completed" else if the value is in column F:F ( sheet2/DB) then in C2 (sheet1) should display "In Progress".
Link to my spreadsheet link
原文:https://stackoverflow.com/questions/36975642
最满意答案
如user3159253所述,子模块URL在域之后应该没有冒号。
SSH://dev@example.com/var/git/themes/Repository_B
As commented by user3159253 the submodule URL should be without colon after the domain.
ssh://dev@example.com/var/git/themes/Repository_B
相关问答
更多-
Git子模块和ssh访问(Git submodules and ssh access)[2022-04-06]
如果可能,最好确保.gitmodules文件包含可供任何人克隆的存储库URL,通常为git://或http:// URL。 然后,拥有SSH访问权限的用户可以在克隆后更改为子模块,并将remote.origin.url的URL更改为使用其用户名指向SSH URL,例如: cd my-submodule git remote set-url origin otheruser@server:/pathtorepos 即使在当前情况下,其他用户也应该能够这样做。 更新: Chris Johnsen指出,如果 ... -
输入子模块目录: cd projB/projA 从您的项目A( 不会更新您的父母,项目B的git状态)从您的项目A拉回购): git pull origin master 回到根目录并检查更新: cd .. git status 如果子模块以前更新,它将显示如下所示: # Not currently on any branch. # Changed but not updated: # (use "git add ..." to update what will be committed) # ...
-
我来到这个SO的帖子试图添加一个子模块与我最近删除的子模块相同的路径。 这是最终对我有用的( 本文帮助很多 ): 如果您还没有运行git rm –-cached path_to_submodule (没有尾部斜线)以及rm -rf path_to_submodule ,那么就这样做! 然后: 从.gitmodules文件中删除相关行。 例如删除这些: [submodule "path_to_submodule"] path = path_to_submodule url = https://github.c ...
-
git子模块更新(Git submodule update)[2023-08-24]
这个GitPro页面很好地总结了git子模块更新的结果 当您运行git submodule update ,它会检出项目的特定版本,但不在分支中。 这被称为具有分离的头 - 这意味着HEAD文件直接指向提交,而不是符号引用。 问题是你通常不想在分离的头脑环境中工作,因为很容易丢失变化 。 如果您执行初始子模块更新,则在该子模块目录中提交,而不创建一个分支,然后再从超项目中再次运行git子模块更新,而不提交,Git将覆盖您的更改,而不会告诉您。 从技术上讲,你不会失去工作,但你不会有一个分支指向它,所以它将有 ... -
git submodule update命令实际上告诉Git你想要你的子模块每个都检出已经在超级项目的索引中指定的提交。 如果要将子模块更新为远程可用的最新提交,则需要在子模块中直接执行此操作。 所以总结一下: # get the submodule initially git submodule add ssh://bla submodule_dir git submodule init # time passes, submodule upstream is updated # and you now ...
-
如user3159253所述,子模块URL在域之后应该没有冒号。 SSH://dev@example.com/var/git/themes/Repository_B As commented by user3159253 the submodule URL should be without colon after the domain. ssh://dev@example.com/var/git/themes/Repository_B
-
出于某种原因,我的.git/modules文件夹的所有权已更改为root。 我能够通过运行来解决问题: chown -R philip:philip .git/modules/ For some reason the ownership on my .git/modules folder had changed to root. I was able to fix the issue by running: chown -R philip:philip .git/modules/
-
如何通过ssh跟踪Jenkins无法检出git子模块?(How to track down a Jenkins failure to checkout git submodule over ssh?)[2023-08-18]
我想你遇到了这里报道的问题: https : //issues.jenkins-ci.org/browse/JENKINS-20941 根据我看到的症状,您放入Jenkins的凭据用于检出顶级仓库,但在尝试获取子模块更新时不会使用它们。 解决方法有两个角度: 将密钥文件放在所有构建从属服务器上 更新您的作业配置以明确更新 或者你可以等待维护者修复它,或者自己修复它:-) 希望这可以帮助 I think you're encountering the problem reported here: https: ... -
无法更新子模块(unable to update submodule)[2023-09-17]
您需要在子模块中进行更新。 然后返回一个级别并从父级仓库提交。 你的git子模块更新只是要求父repo检查子模块是否有内容257a40757 。 它有,所以不需要连接。 由于子模块是它自己的git repo,您需要先更新该repo,然后在父repo中记录所述子模块的新更新状态。 You need to make that update from within the submodule. And then go back one level and commit from the parent repo. ... -
如何将git中的子模块更新为该外部存储库中的HEAD提交(How to update a submodule in git to the HEAD commit in that external repo)[2024-01-12]
步骤是: cd到子模块所在的实际目录。 运行'git pull origin'或任何你想做的事情来将它设置为新的提交。 cd出该目录(可能是存储库根目录)并运行“git status” - 您将看到该目录已更改。 如果你做差异你会看到这样的事情: diff --git a/default/bin/hdvcs b/default/bin/hdvcs index bbd3f56..7c9394c 160000 --- a/default/bin/hdvcs +++ b/default/bin/hdvcs @@ ...