Excel VLOOKUP 3列(Excel VLOOKUP for 3 columns)
我将在我的xls文件中使用VLOOKUP 3列。 以下是参考表格:
Building | Floor | Location ID ---------------------------------------------- Building A | 1 | 1001 Building A | 2 | 1002 Building B | Ground | 2000
我应该如何为这种情况编写VLOOKUP公式? 这样我可以使用
Building
和Floor
列作为LOOKUP VALUE和Location ID
作为RESULT ? 谢谢。I'm going to use the VLOOKUP for 3 columns in my xls file. Below is the reference table :
Building | Floor | Location ID ---------------------------------------------- Building A | 1 | 1001 Building A | 2 | 1002 Building B | Ground | 2000
How should I write the VLOOKUP formula for this case ? So that I can use the
Building
andFloor
columns as the LOOKUP VALUE and theLocation ID
as the RESULT ? Thx.
原文:https://stackoverflow.com/questions/7950723
更新时间:2023-10-21 21:10
最满意答案
我自己找到了:
string Command = "INSERT INTO [" + variable + "] VALUES ('" + _ID + "','" + txt1.Text + "') "; Connection(Command);
你应该删除变量周围的引号!!!!
I found it myself:
string Command = "INSERT INTO [" + variable + "] VALUES ('" + _ID + "','" + txt1.Text + "') "; Connection(Command);
you should remove quotation mark around of variable!!!!
相关问答
更多-
如何使用表名作为变量将数据插入到sqlite数据库中(How to insert data to a sqlite database with table name as variable)[2019-11-09]
将表名存储在String变量中(如何使用): String tableName = "users"; 创建一个包含SQL查询的查询变量: String query = "insert into '" + tableName + "' (uniqueid,name,address,startingdate,estcompletion) values(?,?,?,?,?,?)"; 如果要插入变量,请替换“?” 使用您在代码中完成的变量名称: ps.setInt(1, uniqueID); ps.setStrin ... -
尝试 ::ValueForMoneyScore.create(score: '1', description:"Terrible, definitely not worth what was paid!") The answer was a combination of input, so collecting that in one answer. My namespaces weren't properly set up (I was using "Ratings" rather than "Rati ...
-
我自己找到了: string Command = "INSERT INTO [" + variable + "] VALUES ('" + _ID + "','" + txt1.Text + "') "; Connection(Command); 你应该删除变量周围的引号!!!! I found it myself: string Command = "INSERT INTO [" + variable + "] VALUES ('" + _ID + "','" + txt1.Text + "') " ...
-
这只是一个错字吗? $GET必须是$_GET 。 它应该是$row['Fix']而不是$rows['Fix'] ! 注意's'! Is it just a typo here? $GET must be $_GET. And it should be $row['Fix'] not $rows['Fix']! Note the 's'!
-
正如SQLAlchemy ORM教程所解释的:您需要为实例指定relationship属性。 在你的情况下,你需要设置Company.addresses_category或Category.addresses_company : new_user_company = Company(company_name=form.company_name.data.strip(), users_id = new_user.id) if new_user_company: db_session.add(new ...
-
你有没有尝试过在config.xml中声明这样的表:
Company_Module_Model_Mysql4 table_name
-
你应该用insertString替换insertString myConnect = getConnection(); myConnect.setAutoCommit(false); File file = new File(fileName); fis = new FileInputStream(file); pstmt = myConnect.prepareStatement("insert into customer( " + SSN + ", " + CNAME + "," + ...
-
如何从数据库添加数据并将其设置为高图C#中的数据系列(how to add data from database and set it to data serie in highchart C#)[2023-05-25]
试试这个......(从Cast -
你可以试试用@而不是? ? 尝试这个: string cmdText = "INSERT INTO Launch([Property], [PValue], [PDefault],[PType]) VALUES('@Property','@PValue','@PDefault','@PType')"; using (OleDbConnection Conn = new OleDbConnection(ConnString)) { ...
-
数据库查找functoid(data base look up functoid)[2023-10-11]
我相信微软在包含数据库functoid方面犯了一个大错误。 原因是: 在引擎盖下生成的SQL代码不具备性能(运行sql跟踪,你会看到)。 事实上,有时会创建多个连接。 SQL服务器的请求/响应不会通过发送端口/适配器框架处理。 因此,没有可用于调用的企业级服务(故障处理,重试,负载平衡等)。 从设计的角度来看,它混淆了一个令人讨厌的xslt内部的db调用功能。 但是,您可以通过在地图外部调用数据库,然后将响应消息从数据库调用传递到要转换的源消息旁边的地图来实现相同的目的。 您可以通过这种方式根据需要添加任意 ...