LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Each .5 increases 5% but <.5 doesn't increase anything.

"Gaurav" wrote:
Thanks Joe for the response. But it doesnt seem to
working as I want it to.
[....]
=IF(C4<11,0,IF(AND(C4=11,C4<12),0.4,IF(AND(C4=12 ,C4<13),0.6,IF(AND(C4=13,C4<14),0.8,IF(AND(C4=14 ,C4<14.5),1,IF(C4=14.5,(1+INT((C4-14)/0.05)*0.05),""))))))


Your mistake is writing "/0.05" instead of "/0.5" as I wrote it. You want
the number of 0.5 increments, not 0.05 increments.

Simplifying, your formula becomes:

=if(C4 < 11, 0, if(C4 < 14, 0.4 + 0.2*int(C4-11), 1 +
int((C4-14)/0.5)*0.05))

formatted as Percentage.

Oh well, it appears that your moved on to other solutions. Personally, I
think you'd be much happier in the long-run sticking closer to your original
formula, which is more malleable.


----- original message -----

"Gaurav" wrote in message
...
Thanks Joe for the response. But it doesnt seem to working as I want it
to.

The daily sale is in C4 and here is my "previous" complete formula.

=IF(C5<11,0,IF(AND(C5=11,C5<12),0.4,IF(AND(C5=12 ,C5<13),0.6,IF(AND(C5=13,C5<14),0.8,IF(AND(C5=14 ,C5<14.5),1,IF(C5=14.5,(1+(C5-14)*0.1),""))))))

which I changed to the following after your suggestion.

=IF(C4<11,0,IF(AND(C4=11,C4<12),0.4,IF(AND(C4=12 ,C4<13),0.6,IF(AND(C4=13,C4<14),0.8,IF(AND(C4=14 ,C4<14.5),1,IF(C4=14.5,(1+INT((C4-14)/0.05)*0.05),""))))))

The previous one was increasing 1% with every .1 increase in the sale
value. and the one you suggested is increasing 10% with each .1 increase
in the sale value.

What I actually want is. a 5% increase with each .5 increase. so if the
increase in the sale value is .6 to .9, it would still increase 5%.

Thanks again for your help with this.



"JoeU2004" wrote in message
...
"Gaurav" wrote:
so if a person's average daily sale is between
14 and 14.49, he gets 100%.
[....]
so basically each .5 increase in the figure will
increase the %age by 5.


Ostensibly, I think you want (A1 = daily sale):

=1 + int((A1-14)/0.5)*5%

formatted as Percentage.

But what if the daily sale is less than 14?

Perhaps you want one of the following:

' all sales <= 14 result 100% as well
=1 + int(max(0,A1-14)/0.5)*5%

' sales < 14 result in 0%
=if(A1<14, 0, 1 + int((A1-14)/0.5)*5%)

' reduce 100% by 5 pct pt for each 0.5 less than 14
=max(0, 1 + int((A2-14)/0.5)*5%)


----- original message -----

"Gaurav" wrote in message
...
Hi,

I tried to explain the problem in the subject like but i know i failed
miserably. Anyway, here is the problem. so if a person's average daily
sale is between 14 and 14.49, he gets 100%. If it is between 14.5-14.9
he gets 105%. if it is 15.0-15.49, he gets 110% and so on. But I can not
put so many conditions in one formula...

so basically each .5 increase in the figure will increase the %age by 5.
But if it is less than .5 increase, it stays where it is. so if it is
14.6 or 14.7...14.9, it still remains 105% and the moment it reaches 15,
the %age increase by 5 more and becomes 110%

I hope I was able to explain it properly. Please help.

Thanks







 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Graph with stepped increases or decreases skiwidad Charts and Charting in Excel 4 April 30th 09 04:01 AM
Short Way to Calculate Salary Increases John Excel Worksheet Functions 0 July 29th 08 07:16 PM
formula for 2% annual sales increases shepzuck Excel Worksheet Functions 4 May 12th 08 11:40 AM
Salary and Pension Increases tartan tim Excel Discussion (Misc queries) 5 October 9th 07 03:10 PM
How can I update pricebook increases in different percentages Diane Excel Worksheet Functions 3 February 26th 07 08:55 PM


All times are GMT +1. The time now is 08:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"