简体   繁体   English

如果满足两个范围标准,请复制第三个单元格并将其粘贴到另一张纸上

[英]If two range criteria are met, copy a third cell and paste it to another sheet

I have a sheet called "Scores" where I have Column D and J with values from 1-9 in both columns. 我有一个名为“分数”的工作表,其中的D列和J列的值都在1到9之间。

In this same sheet I have a Column A with the corresponding name for that row (ie Andrew). 在同一张纸上,我有一列A,其中具有该行的相应名称(即Andrew)。

What I need to do is basically a matrix with three possible ranges, which are 1-3, 4-6 and 7-9. 我需要做的基本上是一个具有三个可能范围的矩阵,分别是1-3、4-6和7-9。

  • If D is within 1-3, and simultaneously J is 1-3, Column A for that row will go to a specific range of cells in another sheet called "Box", 如果D在1-3之内,而J在1-3之内,则该行的A列将转到另一张称为“ Box”的工作表中的特定单元格区域,

  • if D is 1-3 and simultaneously J 4-6, Column A for that row will go to another range of cells in "Box", 如果D为1-3且同时为J 4-6,则该行的A列将转到“框”中的另一个单元格区域,

  • If D is 1-3 and simultaneously J is 7-9 it will go to another range of cells in "Box". 如果D为1-3,而J为7-9,它将转到“ Box”中的另一个单元格区域。

  • The same thought process applies to all the different ranges (ie D.3-5 with J.1-3, and so on) 相同的思考过程适用于所有不同的范围(例如,D.3-5和J.1-3等)

I am attaching an example sheet for better clarification. 我附上一个示例表,以进行更好的说明。

Example

Thanks in advanced for the help. 非常感谢您的帮助。

I updated your Google Sheets in-place. 我就地更新了您的Google表格。 In GS, this kind of job is straightforward with query() . 在GS中,这种工作通过query()很简单。

=query(Scores!$A:$J, "select A where D >= 7 and D <= 9 and J >= 7 and J <= 9", 0)

Maybe someone will post Excel or VBA answer. 也许有人会发布Excel或VBA答案。

暂无
暂无

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

相关问题 select 如果满足条件,则复制并粘贴到另一个单元格中的范围 - select a range to copy and paste in another cell if a condition is met 使用粘贴在某些条件下将单元格值从一张纸复制到另一张纸 - Copy Cell values from One Sheet to Another on certain criteria with the paste 如果满足条件,复制并粘贴到另一个工作簿 - Copy and paste to another workbook if criteria is met Excel宏复制单元格范围并将数据粘贴到另一个工作表 - Excel Macro Copy cell range & paste data one sheet to another 使用VBA并使用“偏移”将一系列单元格值复制并粘贴到另一张工作表中 - Copy and paste a range of cell values into another sheet with VBA and using Offset 从范围循环中的每个单元格复制数据并将其粘贴到另一张纸上 - copy data from each cell in range loop and paste it on another sheet 从另一张纸上的单元格值复制同一张纸中范围的一部分的粘贴范围 - Copy Range From One Sheet Paste Part of Range In Same Sheet Based On Cell Value On Another Sheet 如果满足条件,将值复制到另一个单元格的宏 - Macro to copy a value into another cell if a criteria is met 根据条件将列复制并粘贴到另一张工作表 - Copy and paste columns to another sheet based on a criteria 满足条件时,将仅行的一部分复制粘贴到另一张纸上,其中一个单元格包含图片 - Copy paste only part of rows, with one cell containing a picture, on another sheet when condition is met
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM