excel 公式请高手解答一下,在线等.谢谢~~~!!!!!!! excel公式,请高手解答,在线等!!!!!!!!!!!!!...

\u6c42excel\u9ad8\u624b\u89e3\u7b54\uff0c\u8c22\u8c22\uff01\u5728\u7ebf\u7b49

=IF(SUMPRODUCT(($P$1:$P$100=N2)*($Q$1:$Q$100="\u5408\u683c")),"\u5408\u683c","\u4e0d\u5408\u683c")

\u6216\u8005\u4f7f\u7528\u6570\u7ec4\u516c\u5f0f\uff1a=IF(ISERROR(MATCH(N2&"\u5408\u683c",$P$1:$P$100&$Q$1:$Q$100,0)),"\u4e0d\u5408\u683c","\u5408\u683c")

\u5728G2\u8f93\u5165:
=if(countif(\u6570\u636e\u5e93!$a:$a,$f2),vlookup($f2,\u6570\u636e\u5e93!$a:$e,column(b:b),),"")
\u53f3\u62c9\u4e0b\u62c9\u586b\u5145

你这个条件有点多了,如果只用公式有点麻烦,可以考虑用vba来实现!!

Sub test()
a = Cells(2, 1)
b1 = Cells(2, 2)
b2 = Cells(3, 2)
b3 = Cells(4, 2)
col = Cells(2, 256).End(xlToLeft).Column
k = 0
For i = 3 To col
If Cells(1, i) = a Or Cells(2, i) = "" Then
Cells(3, i) = ""
ElseIf Cells(2, i) <> "" And (Cells(2, i) = b1 Or Cells(2, i) = b2 Or Cells(2, i) = b3) Then
Cells(3, i) = ""
k = k + 1
Else
Cells(3, i) = Cells(2, i)
End If
Next

j = 0
For i = col + 1 To Cells(1, 256).End(xlToLeft).Column
If Cells(1, i) = b1 Or Cells(1, i) = b2 Or Cells(1, i) = b3 Then
Cells(3, i) = ""
Else
Cells(3, i) = Cells(1, i)
j = j + 1
End If
If j >= k Then Exit Sub
Next
End Sub

你可以参考下!!

描述的挺复杂的,没明白你需要什么样的结果。
是否蓝色区域的数据除了“1”以外不等于A列和B列,取黄色数据。如果这样用两个IF函数就可以处理了。

为什么这么复杂? 我想你的 思维进入了误区,要跳出来。

扩展阅读:函数公式一览表 ... excel提取年龄的公式 ... 表格一键求乘法 ... exls表格公式大全 ... 表格如何生成自动计算 ... 删除公式但是保留数据 ... 一列数据全部乘0.6 ... excel 公式转为纯文本 ... 100个excel必背公式 ...

本站交流只代表网友个人观点,与本站立场无关
欢迎反馈与建议,请联系电邮
2024© 车视网