打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
用VBA替代公式
菜鸟试了一下,不知是不是你想要的,
Dim rng As Range
If Range('a65536').End(xlUp).Row >= 3 Then
Range('a3:c' & Range('a65536').End(xlUp).Row).ClearContents
End If

For Each rng In Sheets('源数据').Range('a5:a' & Sheets('源数据').Range('a65536').End(xlUp).Row)
If rng >= Sheets('源数据').Range('b1') And rng <= Sheets('源数据').Range('d1') Then
   a = Application.Max(Range('a65536').End(xlUp).Row, 2)
   Cells(a + 1, 1) = rng
    If Sheets('源数据').Cells(rng.Row, 'c') <> 0 Or Sheets('源数据').Cells(rng.Row, 'd') <> 0 Then
      Cells(a + 1, 2) = Application.Max(Sheets('源数据').Cells(rng.Row, 'c'), Sheets('源数据').Cells(rng.Row, 'd'))
      Else
      Cells(a + 1, 2) = ''
    End If
    If Sheets('源数据').Cells(rng.Row, 'f') > 200 Then
      Cells(a + 1, 3) = Sheets('源数据').Cells(rng.Row, 'f')
      Else
        If Sheets('源数据').Cells(rng.Row, 'e') <> 0 Then
          Cells(a + 1, 3) = Sheets('源数据').Cells(rng.Row, 'e')
          Else
          Cells(a + 1, 3) = ''
        End If
     End If
  End If
Next
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
如何快速汇总多工作表数据成总表?
利用字典做多条件的数据查找
Excel VBA
详细介绍,如何用EXCEL制作产品售后管理系统
Excel259个常用宏
Excel VBA多条件查询代码加注释
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服