首页 \ 问答 \ IF / VLOOKUP的更清晰的语法(cleaner syntax for IF /VLOOKUP)

IF / VLOOKUP的更清晰的语法(cleaner syntax for IF /VLOOKUP)

有时我需要测试函数的返回值并决定是保留还是修改它。 当您在单个单元格中执行此操作时,它可能会导致对该函数的两次调用 - 例如

=IF(VLOOKUP(value, table, colNum, FALSE)="Not Affiliated", "Something", VLOOKUP(value, table, colNum, FALSE))

是否可以以不涉及两次VLOOKUP调用的方式执行此操作?


It happens sometimes that I need to test the return value of a function and decide whether to keep or modify it. When you do this in a single cell, it can lead to two calls to that function - for example

=IF(VLOOKUP(value, table, colNum, FALSE)="Not Affiliated", "Something", VLOOKUP(value, table, colNum, FALSE))

Is it possible to do this in a way that doesn't involve two calls to VLOOKUP?


原文:https://stackoverflow.com/questions/17553107
更新时间:2023-10-07 14:10

最满意答案

我想你可以尝试在AWS :: ElasticBeanstalk :: Application的OptionSettings中指定它。 你可以尝试这样的事情:

{
   "Namespace": "aws:elb:loadbalancer",
   "OptionName": "LoadBalancerHTTPSPort",
   "Value": "443"
}

{
   "Namespace": "aws:elb:loadbalancer",
   "OptionName": "SSLCertificateId",
   "Value": "Your certificate ARN"
}

我没有测试它,因此无法保证它能够正常工作。


I think you can try specify it in OptionSettings of AWS::ElasticBeanstalk::Application. You could try something like that:

{
   "Namespace": "aws:elb:loadbalancer",
   "OptionName": "LoadBalancerHTTPSPort",
   "Value": "443"
}

{
   "Namespace": "aws:elb:loadbalancer",
   "OptionName": "SSLCertificateId",
   "Value": "Your certificate ARN"
}

I didn't test it, so it is no guarantee that it will work.

相关问答

更多
  • Elastic Load Balancing(ELB)不适用于Amazon EC2弹性IP地址 ,实际上这两个概念根本不会一起使用。 通过弹性负载平衡的弹性 相反,ELB通常通过CNAME记录使用 (但参见下文),并且通过允许别名DNS地址更改正在使用的ELB的IP(如果需要),可以提供第一级弹性/可用性。 第二级弹性/可用性由负载平衡器在您已注册的EC2实例之间分配流量时执行。 考虑一下:CNAME不会改变(就像弹性IP地址一样 ),EC2实例的替换通过负载均衡器Auto Scaling或自己(通过注册/ ...
  • 这个答案的意思是“不要启动一个beanstalk应用程序,并直接从其中一个实例中删除一个AMI,而应该基于beanstalk AMI(可在公共AMI列表中找到)启动一个实例。” 即,使用其中之一; 注意其中有84个: 完成配置该实例后,切断您自己的私有AMI,并在您的Beanstalk环境中指定它。 That answer just means "Don't start a beanstalk application and cut an AMI directly from one of those ins ...
  • 以下是我为解决问题而采取的所有步骤: 1)我从https-instance.config中删除了/etc/httpd/conf.d/ssl.conf文件声明块 2)我在.ebextensions / httpd / conf.d / ssl.conf中添加了文件本身。 文件内容: LoadModule ssl_module modules/mod_ssl.so Listen 443 Order deny,allow Allow ...
  • 您可以使用ELastic Beanstalk来部署您的微服务。 当您使用Elastic Beanstalk时,在Bckend中,Elastic Beanstalk会创建所需的EC2实例,并使用Load Balancers来运行和部署您的应用程序。 因此你不需要创建一个EC2实例。 我建议你按照这里的教程,它会引导你开始一个示例Multi Docker应用程序。 另外,我建议您研究具有更多托管微服务应用程序功能的ECS / Fargate服务。 You can use Elastic Beanstalk to ...
  • 您可以通过SSH连接到环境中的任何服务器,并从那里生成CSR。 从哪里生成CSR并不重要。 您将SSL安装到ELB本身,而不是每个EC2实例。 如果你搜索,你会发现很多关于它的教程。 You can SSH into any of the servers in your environment and generate a CSR from there. It really doesn't matter where you generate the CSR from. You install the SSL ...
  • 根据您的网站后端的实施方式,您可以将文件存储在安全的S3存储桶中,并在运行时从应用程序读取内容。 Depending on how your website backend is implemented, you could store the file in a secure S3 bucket and read the contents from your application at runtime.
  • 我想你可以尝试在AWS :: ElasticBeanstalk :: Application的OptionSettings中指定它。 你可以尝试这样的事情: { "Namespace": "aws:elb:loadbalancer", "OptionName": "LoadBalancerHTTPSPort", "Value": "443" } { "Namespace": "aws:elb:loadbalancer", "OptionName": "SSLCertifica ...
  • 您无法为Amazon网域注册SSL证书(amazonaws.com,elasticbeanstalk.com等) 如果您要为Elastic Beanstalk应用程序(内部或外部)使用HTTPS,则必须使用自己的域。 向DNS注册商注册域名。 通过ACM为该域申请一个SSL证书。 将该ACM证书分配给您的Elastic Beanstalk应用程序。 将您的域指向Elastic Beanstalk应用程序,用于外部DNS的CNAME,路由53的CNAME或ALIAS。 通过您的域名访问EB应用程序,而不是el ...
  • 您需要告诉ALB通过端口80上的HTTP与EC2实例进行通信。将最后两行更改为: Port: '80' Protocol: HTTP You need to tell the ALB to communicate with the EC2 instances over HTTP on port 80. Change the last two lines to this: Port: '80' Protocol: HTTP
  • 您是否真的需要弹性beanstalk,或者您需要使用任何建议的解决方案部署到AWS? 如果第二种 - 最简单的方法是将Angular2部署到S3存储桶,配置为提供静态文件: 转到S3 创建新桶 打开桶 转到“属性”选项卡 选择“静态网站托管” 选中“使用此存储桶托管网站”,并为索引和错误页面提供“index.html” 使用“ng build”构建解决方案 将构建结果从“build”文件夹复制到此存储桶中 导航到“静态网站托管”部分中显示的链接 Do you need exactly to elastic ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。