由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - Please help me on VBA
相关主题
[合集] Excel中的问题请教一下BRETT版主
VBA public function求助excel 问题
[合集] 问个Excel+VBA的问题请推荐一本用EXCEL VBA做financial model的书
请教VBA(macro 跟 user defined function)Excel VBA help!!!
Hedge Fund Software Programmer and/or Network Administrator谁有Option Pricing Models & Volatility Using Excel-VBA 的CD
[合集] Monte Carlo 如何把Matlab的控制结构转换成Excel程序?Anyone knows about Clone function in EXCEL VBA?
EXCEL VBA in real world能不能推荐些好的C#的书?
zt: Modeling without Programming谁有 ‘Advanced modelling in finance using Excel and VBA’ 的VBA Codes
相关话题的讨论汇总
话题: vba话题: sentence话题: rampmon话题: result话题: function
进入Quant版参与讨论
1 (共1页)
f********s
发帖数: 658
1
This is a function I created to calculate sales people performance. It works
fine but there is a minor problem. I defined the function as variant
because the result could be both empty or a number. The first "if" sentence
I want to have a empty result in the Excel cell. Other "if" sentence result
in "0" or "numbers". However, when I use this function I found it can only
show "0" in the first "if" sentence instead of showing nothing. I tried to
figure it out but don't know how to do this.
I am a
a******e
发帖数: 132
2
If rampmon <= 0 Then prodty = blank
f********s
发帖数: 658
3
Thanks. Are you serious?

【在 a******e 的大作中提到】
: If rampmon <= 0 Then prodty = blank
a******e
发帖数: 132
4
...
blank means blank cell in Excel VBA
i am serious ...
f********s
发帖数: 658
5
I tried but it doesn't work.

【在 a******e 的大作中提到】
: ...
: blank means blank cell in Excel VBA
: i am serious ...

s*********i
发帖数: 66
6
Change second If statement to "If 0 < rampmon And rampmon <= 1".
f********s
发帖数: 658
7
Thank you Starbuckswi!
I revised my program as you said. Now it works! I really appreciate your
help.

【在 s*********i 的大作中提到】
: Change second If statement to "If 0 < rampmon And rampmon <= 1".
1 (共1页)
进入Quant版参与讨论
相关主题
谁有 ‘Advanced modelling in finance using Excel and VBA’ 的VBA CodesHedge Fund Software Programmer and/or Network Administrator
Excel 请教 Uncheck the raido button[合集] Monte Carlo 如何把Matlab的控制结构转换成Excel程序?
how to access VBA code in another Excel workbook EXCEL VBA in real world
求 pdf 版本Advanced Modelling in Finance Using Excel and VBAzt: Modeling without Programming
[合集] Excel中的问题请教一下BRETT版主
VBA public function求助excel 问题
[合集] 问个Excel+VBA的问题请推荐一本用EXCEL VBA做financial model的书
请教VBA(macro 跟 user defined function)Excel VBA help!!!
相关话题的讨论汇总
话题: vba话题: sentence话题: rampmon话题: result话题: function