T. Valko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Think the final divisor should be 10:
No that formula doesn't work either but my second attempt does - depending
on how you read the OP's requirements:
>>> If the cell number is 15 it would then multiply 15*.6 which equals 0.9
I assumed that the 15*.6 was a typo for 15 *0.06 to give 0.9
which will be why you are saying that I should have used 10?
--
Regards,
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
(E-Mail Removed)
(E-Mail Removed) with @tiscali.co.uk
"T. Valko" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>> =B8*(FLOOR(B8,10)/10+5)/100
>
> Think the final divisor should be 10:
>
> =B8*(FLOOR(B8,10)/10+5)/10
>
> Biff
>
> "Sandy Mann" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> With your 15 in B8 try:
>>
>> =B8*(FLOOR(B8,10)/10+5)/100
>>
>> --
>> HTH
>>
>> Sandy
>> In Perth, the ancient capital of Scotland
>> and the crowning place of kings
>>
>> (E-Mail Removed)
>> (E-Mail Removed) with @tiscali.co.uk
>>
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>I need to figure out how to multiply a number by a percentage based on
>>> the table below:
>>> 0-10 = 5%
>>> 11-20 = 6%
>>> 21-30 = 7%
>>> 31-40 = 8%
>>>
>>> Example:
>>> If the cell number is 15 it would then multiply 15*.6 which equals 0.9
>>> in the cell next to the original value.
>>>
>>> I tried this macro:
>>> Sub Percent()
>>> If Value < 10 Then
>>> ActiveCell.Offset(0, 1).Select
>>> ActiveCell.FormulaR1C1 = "=RC[-4]*0.05"
>>> ElseIf Value > 11 < 20 Then
>>> ActiveCell.Offset(0, 1).Select
>>> ActiveCell.FormulaR1C1 = "=RC[-4]*0.06"
>>> End If
>>>
>>
>>
>
>