w 算法优化

Cells(i, "Y") + Cells(i, "Z") * 0.2 多计算了一次
是 1*SUM(i)次

Sub 订单利润()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Select Case Cells(i, "C")
Case Is = Adjustment
Cells(i, "AA") =
Case Is = FBA_W_Fee And W_Deal_Fee And Service_Fee
Cells(i, "AA") = Range(Cells(i, "V"))
Case Is = Order
If Cells(i, "X") = "" Then
Cells(i, "AA") =
Else
Cells(i, "AA") = Range(Cells(i, "Z")) - Range(Cells(i, "Y")) * Range(Cells(i, "G"))
End If
Case Is = Refund
If (Range(Cells(i, "Y")) + Range(Cells(i, "Z"))) * 0.1234 < Then
Cells(i, "AA") = (Range(Cells(i, "Y")) + Range(Cells(i, "Z"))) * 0.1234
Else
Cells(i, "AA") =
End If
Case Is = Transfer
Cells(i, "AA") =
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润0()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润1()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Select Case Cells(i, "C")
Case Is = "Adjustment"
Cells(i, "AA") =
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润2()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "Adjustment"
Cells(i, "AA") =
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润3()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "Adjustment"
Cells(i, "AA") =
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润4()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "Adjustment"
Cells(i, "AA") = Cells(i, "V")
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润5()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "FBA Inventory Fee"
Cells(i, "AA") = Cells(i, "V")
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润6()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "FBA Inventory Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "W Deal Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "Service Fee"
Cells(i, "AA") = Cells(i, "V")
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润7()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "FBA Inventory Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "W Deal Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "Service Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "Order"
If Not IsError(Cells(i, "X")) Then
Cells(i, "AA") = Cells(i, "Z") - Cells(i, "Y") * Cells(i, "G")
End If
Case Is = "Refund"
If Cells(i, "Y") + Cells(i, "Z") * 0.1234 < Then
Cells(i, "AA") = Cells(i, "Y") + Cells(i, "Z") * 0.1234
End If
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润8()
Dim Adjustment, FBA_W_Fee, W_Deal_Fee, Order, Refund, Service_Fee, Transfer As Integer, i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "FBA Inventory Fee", "W Deal Fee", "Service Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "Order"
If Not IsError(Cells(i, "X")) Then
Cells(i, "AA") = Cells(i, "Z") - Cells(i, "Y") * Cells(i, "G")
End If
Case Is = "Refund"
If Cells(i, "Y") + Cells(i, "Z") * 0.1234 < Then
Cells(i, "AA") = Cells(i, "Y") + Cells(i, "Z") * 0.1234
End If
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub Sub 订单利润9()
Dim i As Integer
i =
Do
Cells(i, "AA") =
Select Case Cells(i, "C")
Case Is = "FBA Inventory Fee", "W Deal Fee", "Service Fee"
Cells(i, "AA") = Cells(i, "V")
Case Is = "Order"
If Not IsError(Cells(i, "X")) Then
Cells(i, "AA") = Cells(i, "Z") - Cells(i, "Y") * Cells(i, "G")
End If
Case Is = "Refund"
If Cells(i, "Y") + Cells(i, "Z") * 0.1234 < Then
Cells(i, "AA") = Cells(i, "Y") + Cells(i, "Z") * 0.1234
End If
End Select
i = i +
Loop Until Cells(i, "C") = ""
End Sub

1*SUM(i) 开源社区的更多相关文章

  1. Tornado的一个开源社区

    https://link.zhihu.com/?target=http%3A//www.tornadoweb.org/en/stable/ 基于Tornado的一个开源社区 GitHub - shiy ...

  2. Linux已经全然统治了这个世界:反对开源社区愚不可及

    原文来自:http://readwrite.jp/archives/9977 不管一个企业多强大,它都不存在和开源社区抗衡的实力 十年前.Unix占有最快的计算机世界排名前10位的五席,以及超级计算机 ...

  3. 积极拥抱.NET Core开源社区

    潘正磊在上海的Tech Summit 2018 大会上给我们的.NET Core以及开源情况带来了最新信息. .Net Core 开源后取得了更加快速的发展,目前越活跃用户高达400万人,每月新增开发 ...

  4. 算法工程师想进一步提高竞争力?向TensorFlow开源社区贡献你的代码吧

    算法工程师为什么也要向社区贡献代码? [作者:DeepLearningStack,阿里巴巴算法工程师,开源TensorFlow Contributor] “做算法的人要熟悉算法框架源码吗?算法工程师难 ...

  5. 500G !!史上最全的JAVA全套教学视频网盘分享 (JEECG开源社区)

    500 G JAVA视频网盘分享(JEECG开源社区) [涵盖从java入门到深入架构,Linux.云计算.分布式.大数据Hadoop.ios.Android.互联网技术应有尽有] JEECG开源社区 ...

  6. 福州首届.NET开源社区技术交流会圆满成功

    活动总结 2018年11月10日周六的下午,在福州蒲公英创新工场举办了福州首届.NET开源社区技术交流会,来自福建省各大科技公司的技术小伙伴齐聚一堂,为了就是能在现场学习到微软跨平台技术.NET Co ...

  7. 【福州活动】| "福州首届.NET开源社区线下技术交流会"(2018.11.10)

    活动介绍 微软爱开源,已是尽人皆知的事实.自从收购全球最大的开源社区 GitHub 之后,微软依旧使 GitHub 保持独立运营,并且通过此项举措,微软本身已经成为最大的社区服务者. .NET Cor ...

  8. 500 G JAVA视频网盘分享(JEECG开源社区)

    500 G JAVA视频网盘分享(JEECG开源社区)   [涵盖从java入门到深入架构,Linux.云计算.分布式.大数据Hadoop.ios.Android.互联网技术应有尽有]   [转载:h ...

  9. 500G JAVA视频网盘分享 (JEECG开源社区)

    500 G JAVA视频网盘分享(JEECG开源社区)   [涵盖从java入门到深入架构,Linux.云计算.分布式.大数据Hadoop.ios.Android.互联网技术应有尽有]       J ...

随机推荐

  1. iOS 核心动画 Core Animation浅谈

    代码地址如下:http://www.demodashi.com/demo/11603.html 前记 关于实现一个iOS动画,如果简单的,我们可以直接调用UIView的代码块来实现,虽然使用UIVie ...

  2. iOS 自定义转场动画浅谈

    代码地址如下:http://www.demodashi.com/demo/11612.html 路漫漫其修远兮,吾将上下而求索 前记 想研究自定义转场动画很久了,时间就像海绵,挤一挤还是有的,花了差不 ...

  3. 调用腾讯QQ启动

    http://wpa.qq.com/msgrd?v=3&uin=88888888&site=qq&menu=yes

  4. AMQP 协议介绍

    RabbitMQ 是遵从AMQP 协议的, 换句话说, RabbitMQ 就是AMQP 协议的Erlang 的实现(当然RabbitMQ 还支持STOMP2 .MQTT3 等协议) 0 AMQP 的模 ...

  5. JanusGraph与Cassandra集成模式

    //如果使用的是cassandra 2.2或更高版本,需要开启thift,以使janus连接到cassandra. ./bin/nodetool enablethrift. 15.1 Local Se ...

  6. Scikit-learn的kmeans聚类

    1. 生成随机的二维数据: import numpy as np x1 = np.array([1, 2, 3, 1, 5, 6, 5, 5, 6, 7, 8, 9, 9]) x2 = np.arra ...

  7. 联想电脑Win8升级win10后Wlan关闭无法开启解决办法

    官网下载电源驱动,下载无线网上驱动 开启电脑 按fn+f5 电源管理界面就出来了 把无线网卡打开 就ok了 这样就开启了无线! 如果还不行,可进行如下尝试,希望有所帮助: 1.开机进bios(一般是按 ...

  8. CSS 温故而知新 background常用属性

    1.background-repeat 不用说,常用直接no-repeat 2.background-size 常用的分为两个,一个是铺满:cover, 另一个是使图像适应宽高:contain 3.b ...

  9. Silverlight实例教程 - Validation数据验证DataAnnotation机制和调试技巧(转载)

    Silverlight 4 Validation验证实例系列 Silverlight实例教程 - Validation数据验证开篇 Silverlight实例教程 - Validation数据验证基础 ...

  10. linux 实时显示文件的内容

    1. watch -n 1 aa.txt  #每个1秒显示aa.txt的内容 2. tail -f ***.log Linux shell中有一个tail命令,常用来显示一个文件的最后n行文档内容 但 ...