Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1662|回复: 1

[已解决]【excel助手】老师!请进!

[复制链接]
发表于 2016-1-7 19:54 | 显示全部楼层 |阅读模式
筛选最新登记的数据,按名称编码 商品编码筛选.rar (12.22 KB, 下载次数: 5)
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2016-1-7 20:20 | 显示全部楼层    本楼为最佳答案   
Sub 按钮4_Click()
    Dim d
    Dim i, j
    Set d = CreateObject("Scripting.Dictionary")
    For i = 11 To 5 Step -1
   
        If InStr("赠出赠入", Cells(i, 8)) = 0 And Not (d.exists(Cells(i, 19) & Cells(i, 21))) And Cells(i, 19) = Cells(3, 4) Then
            j = Cells(65536, 4).End(xlUp).Row + 1
            Cells(j, 4) = Cells(i, 19)
            Cells(j, 5) = Cells(i, 21)
            Cells(j, 6) = Cells(i, 4)
            Cells(j, 7) = Cells(i, 5)
            Cells(j, 8) = Cells(i, 6)
            Cells(j, 9) = Cells(i, 7)
            Cells(j, 10) = Cells(i, 8)
            Cells(j, 11) = "=" & Cells(i, 10) & "/" & Cells(i, 23)
            
            d(Cells(i, 19) & Cells(i, 21)) = 1
        End If
    Next i
End Sub
筛选最新登记的数据,按名称编码 商品编码筛选.zip (14.2 KB, 下载次数: 8)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-6-5 00:21 , Processed in 0.297735 second(s), 12 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表