我有两张纸,其中包含不同的列,其中两列包含文档编号和价格。现在,我想在工作表2的D列(所有文件编号)内匹配工作表1的单元格K3(文件编号)。如果存在匹配项,那么我希望返回列V中提到的相应价格。
这是我尝试过的公式:
=VLOOKUP(K3,'Sheet1 (2)'!D2:D896,22,FALSE)
答案 0 :(得分:0)
VLOOKUP
文档在这里很有帮助,尤其是与公式的第2部分和第3部分相对应的第2点和第3点。
查找值所在的范围。请记住,查找值应始终在VLOOKUP正常工作范围的第一列中。例如,如果您的查找值位于单元格C2中,则您的范围应以C开头。
包含返回值的范围内的列号。例如,如果您将B2:D11指定为范围,则应将B列为第一列,将C列为第二列,依此类推。
因此,将您的查找范围中的第二个D
更改为V
,然后将列更改为19
而不是22
-D
是第一列,E
,第二个,依此类推,直到V
,即查找范围的第19列。
=VLOOKUP(K3,'Sheet1 (2)'!D2:V896,19,FALSE)
如果VLOOKUP
不是您的事,请考虑使用INDEX
/ MATCH
。
=INDEX('Sheet1 (2)'!V:V,MATCH(K3,'Sheet1 (2)'!D:D,0))
答案 1 :(得分:0)
{
"block_v1":{
"payload":{
"transactions":[
{
"payload":{
"reducedPayload":{
"commands":[
{
"addPeer":{
"peer":{
"address":"127.0.0.1:10001",
"peerKey":"bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929"
}
}
},
{
"createRole":{
"roleName":"admin",
"permissions":[
"can_add_peer",
"can_add_signatory",
"can_create_account",
"can_create_domain",
"can_get_all_acc_ast",
"can_get_all_acc_ast_txs",
"can_get_all_acc_detail",
"can_get_all_acc_txs",
"can_get_all_accounts",
"can_get_all_signatories",
"can_get_all_txs",
"can_get_blocks",
"can_get_roles",
"can_read_assets",
"can_remove_signatory",
"can_set_quorum"
]
}
},
{
"createRole":{
"roleName":"user",
"permissions":[
"can_add_signatory",
"can_get_my_acc_ast",
"can_get_my_acc_ast_txs",
"can_get_my_acc_detail",
"can_get_my_acc_txs",
"can_get_my_account",
"can_get_my_signatories",
"can_get_my_txs",
"can_grant_can_add_my_signatory",
"can_grant_can_remove_my_signatory",
"can_grant_can_set_my_account_detail",
"can_grant_can_set_my_quorum",
"can_grant_can_transfer_my_assets",
"can_receive",
"can_remove_signatory",
"can_set_quorum",
"can_transfer"
]
}
},
{
"createRole":{
"roleName":"money_creator",
"permissions":[
"can_add_asset_qty",
"can_create_asset",
"can_receive",
"can_transfer"
]
}
},
{
"createDomain":{
"domainId":"test",
"defaultRole":"user"
}
},
{
"createAsset":{
"assetName":"coin",
"domainId":"test",
"precision":2
}
},
{
"createAccount":{
"accountName":"admin",
"domainId":"test",
"publicKey":"313a07e6384776ed95447710d15e59148473ccfc052a681317a72a69f2a49910"
}
},
{
"createAccount":{
"accountName":"test",
"domainId":"test",
"publicKey":"716fe505f69f18511a1b083915aa9ff73ef36e6688199f3959750db38b8f4bfc"
}
},
{
"createAccount":{
"accountName":"user1",
"domainId":"test",
"publicKey":"5a0ff31cebd82ebccb7952b5066c65748a72cfd31c05b95cd421b34eb747378c"
}
},
{
"appendRole":{
"accountId":"admin@test",
"roleName":"admin"
}
},
{
"appendRole":{
"accountId":"admin@test",
"roleName":"money_creator"
}
}
],
"quorum":1
}
}
}
],
"txNumber":1,
"height":"1",
"prevBlockHash":"0000000000000000000000000000000000000000000000000000000000000000"
}
}
}
在公式中倒数第二个参数是值的列数。