简体   繁体   English

谷歌表格从列中查找下一个数值

[英]Google sheets Find next numeric value from the colnums

I have two rows with SKUs, one comes from one database, and another one from another one.我有两行 SKU,一个来自一个数据库,另一个来自另一个数据库。 As you can see in the visual example SKUs with values 1, 2, 4 & 5 are present in both databases.正如您在可视示例中看到的那样,两个数据库中都存在值 1、2、4 和 5 的 SKU。

https://i.stack.imgur.com/KlTCr.png https://i.stack.imgur.com/KlTCr.png

I start with number 1 and I need a formula that would bring up the next valid number (in this case number 2) that is present in both columns.我从数字 1 开始,我需要一个公式来显示两个列中都存在的下一个有效数字(在本例中为数字 2)。

I would need a formula that would do the following: If I lookup 1 it should bring 2 If I lookup 2 it should bring 4 If I lookup 4 it should bring 5我需要一个公式来执行以下操作:如果我查找 1 它应该带来 2 如果我查找 2 它应该带来 4 如果我查找 4 它应该带来 5

Thank you in advance先感谢您

try:尝试:

={FILTER(B2:B16, COUNTIF(E2:E16, B2:B16)), 
 {QUERY(FILTER(B2:B16, COUNTIF(E2:E16, B2:B16)), "offset 1", ); ""}}

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Arrayformula 用于在 Google 表格中查找条件的下一个值 - Arrayformula to find next value for criteria in Google Sheets 查找和替换列中的数据 - Google 表格 - Find and replace data from columns - Google Sheets 将 JSON 数组中的值导入 Google 表格 - Importing value from JSON array to Google Sheets Google Sheets - 根据相应单元格范围内的数值连接单元格范围内文本的公式 - Google Sheets - Formula to Concatenate Text in Range of Cells based on Numeric Value in Corresponding Range of Cells Powershell:从 integer 数组中查找特定数值的出现次数 - Powershell: Find number of occurrences of a specific numeric value from an integer array 如何通过单击/加载更多分页从站点将 XML 导入 Google 表格 - How to IMPORTXML into Google Sheets from site with next-click/load-more pagination 如何查找现有数组的下一个数字索引? - How to find the next numeric index of an existing array? Google Sheets 数组中的静态值 - Static Value in Google Sheets Array 谷歌表格 IF function 返回值 - Google Sheets IF function to return value 从另一个工作表中按谷歌工作表中的列名返回值 - Return value by column name in google sheets from another sheet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM