Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I create this argument? For every 20 you get 2?
How can I set this up in excel?
The rule is, 2 items free per 20 items example. For every 20 items you get 2 extra for 40 you get 4 60 you get 6 I want the calculation to continue for each allotment of 20 in a total amount and then put that answer in the Items Free column. Thanks, Mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I create this argument? For every 20 you get 2?
How about:
=2*INT((A1)/20) Where A1 contained the total. But if you bought 39, this would only give you 2 free. Mark wrote: How can I set this up in excel? The rule is, 2 items free per 20 items example. For every 20 items you get 2 extra for 40 you get 4 60 you get 6 I want the calculation to continue for each allotment of 20 in a total amount and then put that answer in the Items Free column. Thanks, Mark -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I create this argument? For every 20 you get 2?
Was a worksheet formula ok? You posted in .programming.
Mark wrote: How can I set this up in excel? The rule is, 2 items free per 20 items example. For every 20 items you get 2 extra for 40 you get 4 60 you get 6 I want the calculation to continue for each allotment of 20 in a total amount and then put that answer in the Items Free column. Thanks, Mark -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I create this argument? For every 20 you get 2?
Thank you Dave, this looks like what I need
Mark. 8) "Dave Peterson" wrote in message ... How about: =2*INT((A1)/20) Where A1 contained the total. But if you bought 39, this would only give you 2 free. Mark wrote: How can I set this up in excel? The rule is, 2 items free per 20 items example. For every 20 items you get 2 extra for 40 you get 4 60 you get 6 I want the calculation to continue for each allotment of 20 in a total amount and then put that answer in the Items Free column. Thanks, Mark -- Dave Peterson |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
How can I create this argument? For every 20 you get 2?
Yes Dave, it worked great, and I have made sure I understand this formula
and not just cut and pasted it in..Thanks for your help. Mark. 8) "Dave Peterson" wrote in message ... Was a worksheet formula ok? You posted in .programming. Mark wrote: How can I set this up in excel? The rule is, 2 items free per 20 items example. For every 20 items you get 2 extra for 40 you get 4 60 you get 6 I want the calculation to continue for each allotment of 20 in a total amount and then put that answer in the Items Free column. Thanks, Mark -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
If argument | Excel Worksheet Functions | |||
How I can create a function with return argument | Excel Discussion (Misc queries) | |||
I Need An Argument | Excel Worksheet Functions | |||
what is an argument? | Excel Discussion (Misc queries) | |||
IF THEN argument | Excel Discussion (Misc queries) |