커뮤니티
수식 문의 드립니다
2013-03-27 18:20:51
169
글번호 61329
if netprofit >= 20,000,000 then conts = 2;
if netprofit >= 30,000,000 then conts = 3;
if netprofit >= 30,000,000 then conts = 4;
if netprofit >= 40,000,000 then conts = 5;
.
.
.
..
이런식으로 계속 계약수가 늘어나게 하고 싶은데,, 이걸 간단하게 표현하는 수식이 가능한가요?
답변 1
예스스탁 예스스탁 답변
2013-03-28 09:31:54
안녕하세요
예스스탁입니다.
NetProfit을 천만원으로 나누신후 정수값만 취하시게 작성하시면 됩니다.
if NetProfit >= 20000000 Then
conts = int(NetProfit/10000000);
Else
conts = 1;
즐거운 하루되세요
> 무명 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다
> if netprofit >= 20,000,000 then conts = 2;
if netprofit >= 30,000,000 then conts = 3;
if netprofit >= 30,000,000 then conts = 4;
if netprofit >= 40,000,000 then conts = 5;
.
.
.
..
이런식으로 계속 계약수가 늘어나게 하고 싶은데,, 이걸 간단하게 표현하는 수식이 가능한가요?