在以下公式中帮我添加如果在B列查找到平面度字样,则直接在C和D列中查找对应值,如果在B列查找到的点位在C列对应每组数值时为一样,则使用D列的值,如果D列的值一样则使用C列的值 =IFERROR( VLOOKUP(LOWER(AL$8), INDIRECT("B" & MATCH(":BEGIN",$B:$B,0)+$AK9*COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) - COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) &":C" & MATCH(":END",$B:$B,0)+$AK9 * COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1)), 2,FALSE ), "无数据")
时间: 2023-06-20 22:04:48 浏览: 79
你可以使用下面的公式来实现你的需求:
=IF(ISNUMBER(SEARCH("平面度",$B2)), IF(COUNTIF(INDIRECT("B" & MATCH(":BEGIN",$B:$B,0)+$AK2*COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) - COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) &":B" & MATCH(":END",$B:$B,0)+$AK2 * COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1)), $C2) = COUNTIF(INDIRECT("B" & MATCH(":BEGIN",$B:$B,0)+$AK2*COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) - COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) &":B" & MATCH(":END",$B:$B,0)+$AK2 * COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1)), $C2:$C$10000), VLOOKUP(LOWER(AL$8), INDIRECT("B" & MATCH(":BEGIN",$B:$B,0)+$AK2*COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) - COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) &":D" & MATCH(":END",$B:$B,0)+$AK2 * COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1)), 3, FALSE), VLOOKUP(LOWER(AL$8), INDIRECT("B" & MATCH(":BEGIN",$B:$B,0)+$AK2*COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) - COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1) &":C" & MATCH(":END",$B:$B,0)+$AK2 * COUNTA($B:$B) / IFERROR(COUNTIF($B:$B,":BEGIN"),1)), 2, FALSE)), "无数据")
这个公式首先检查B列是否包含"平面度",如果是,则在C列和D列中查找对应的值。如果在C列中找到的每组数值都相同,则使用D列的值,否则使用C列的值。如果找不到对应的值,则返回 "无数据"。
阅读全文
相关推荐
















