ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How can I create this argument? For every 20 you get 2? (https://www.excelbanter.com/excel-programming/276230-how-can-i-create-argument-every-20-you-get-2-a.html)

Mark[_20_]

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



Dave Peterson[_3_]

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


Dave Peterson[_3_]

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


Mark[_20_]

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




Mark[_20_]

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





All times are GMT +1. The time now is 01:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com