简体   繁体   English

在匹配文件时添加多个逻辑

[英]To Add multiple logics while matching the file

In Column A, B and C I have raw data, I need to first find if a particular file with particular date and particular status is available in raw data or not, if it is not available it can come with answer 0 or Dash.在 A 列、B 列和 C 中,我有原始数据,我需要首先查找具有特定日期和特定状态的特定文件是否在原始数据中可用,如果不可用,它可以带有答案 0 或破折号。 And if it is available I need to add logics to get the correct answer.如果可用,我需要添加逻辑以获得正确答案。

  1. If a particular File with particular Date is available and if it is meeting the criteria in Column C it can return with the answer "Available"如果具有特定日期的特定文件可用并且满足列 C 中的条件,它可以返回答案“可用”

The Criteria is In column C for that particular file if it founds the word "Combine" and/or "Part 1 and Part 2" and/or "Part 2 and Combine" than it should return with answer "Available"如果找到单词“Combine”和/或“Part 1 and Part 2”和/或“Part 2 and Combine”,则标准在该特定文件的列 C 中,而不是返回答案“可用”

  1. For that particular file in Column C if it founds only "Part 1" or only "Part 2" it should display with answer "Not available"对于列 C 中的特定文件,如果它只找到“第 1 部分”或“第 2 部分”,它应该显示答案“不可用”

This way i can get if both parts of a particular file is available or not.这样我就可以得到一个特定文件的两个部分是否可用。 please see the screenshot请看截图

例子

I hope i am able to clarify the question.我希望我能够澄清这个问题。 I will be thankful for this.我会为此感激不尽。

Date日期 Name of File文件名 Status of File文件状态
20-Jan-23 20-1-23 North Combine结合
20-Jan-23 20-1-23 South Combine结合
20-Jan-23 20-1-23 East东方 Combine结合
20-Jan-23 20-1-23 West西方 Combine结合
20-Jan-23 20-1-23 Alpha Α Combine结合
20-Jan-23 20-1-23 Beta测试版 Combine结合
20-Jan-23 20-1-23 Gama伽马 Combine结合
21-Jan-23 23 年 1 月 21 日 North Part 1第1部分
21-Jan-23 23 年 1 月 21 日 North Part 2第2部分
21-Jan-23 23 年 1 月 21 日 South Part 1第1部分
21-Jan-23 23 年 1 月 21 日 East东方 Part 2第2部分
21-Jan-23 23 年 1 月 21 日 East东方 Combine结合
21-Jan-23 23 年 1 月 21 日 West西方 Part 1第1部分
21-Jan-23 23 年 1 月 21 日 Alpha Α Part 1第1部分
21-Jan-23 23 年 1 月 21 日 Beta测试版 Part 1第1部分
21-Jan-23 23 年 1 月 21 日 Beta测试版 Part 2第2部分
21-Jan-23 23 年 1 月 21 日 Gama伽马 Combine结合

You can use this function in G2:你可以在 G2 中使用这个 function:

=IF(SUMPRODUCT(($A$2:$A$18=E2)*($B$2:$B$18=F2)*($C$2:$C$18 = "Combine")),"Available",
IF(COUNTIFS($A$2:$A$18,E2,$B$2:$B$18,F2,$C$2:$C$18,"Part *")=2,"Available","not available"))

在此处输入图像描述

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM