首页 \ 问答 \ Google电子表格使用VLOOK UP获得多个结果(Google spreadsheet Multiple result with VLOOK UP)

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
更新时间:2023-09-21 06:09

最满意答案

如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

相关问答

更多
  • 如果可能,最好确保.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 ...
  • 这个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/
  • 我想你遇到了这里报道的问题: https : //issues.jenkins-ci.org/browse/JENKINS-20941 根据我看到的症状,您放入Jenkins的凭据用于检出顶级仓库,但在尝试获取子模块更新时不会使用它们。 解决方法有两个角度: 将密钥文件放在所有构建从属服务器上 更新您的作业配置以明确更新 或者你可以等待维护者修复它,或者自己修复它:-) 希望这可以帮助 I think you're encountering the problem reported here: https: ...
  • 您需要在子模块中进行更新。 然后返回一个级别并从父级仓库提交。 你的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. ...
  • 步骤是: 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 @@ ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)