|
Guest
Posts: n/a
|
Very nice solution, Dana!
--
Regards
Roger Govier
"Dana DeLouis" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Maybe with just 1 Sum function...
>
> =MOD(20,MOD(SUM(3*(MID(A1,{1,3,5,7,9,11},1)),(--MID(A1,{2,4,6,8,10},1))),10)+10)
>
> --
> Dana DeLouis
> Windows XP & Office 2003
>
>
> "Dana DeLouis" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Another variation might be to factor out the common Sum formulas.
>> One "Mod" to eliminate the Ceiling function and narrow the values,
>> and a Second "Mod" to fine tune the conversion.
>>
>> =MOD(20,MOD(3*SUM(--MID(A1,{1,3,5,7,9,11},1))+SUM(--MID(A1,{2,4,6,8,10},1)),10)+10)
>>
>> --
>> HTH :>)
>> Dana DeLouis
>> Windows XP & Office 2003
>>
>>
>> "Roger Govier" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi Silvio
>>>
>>> Try
>>> =CEILING(3*(SUM(--(MID(A1,{1,3,5,7,9,11},1))))+SUM(--(MID(A1,{2,4,6,8,10},1))),10)
>>> -(3*(SUM(--(MID(A1,{1,3,5,7,9,11},1))))+SUM(--(MID(A1,{2,4,6,8,10},1))))
>>>
>>> --
>>> Regards
>>>
>>> Roger Govier
>>>
>>>
>>> "Silvio Dante" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Hi all,
>>>>
>>>> is there a way to express this formula below in a more compact way?
>>>>
>>>> =CEILING(3*(SUM(MID(A1,1,1),MID(A1,3,1),MID(A1,5,1),MID(A1,7,1),MID(A1,9,1),MID(A1,11,1)))+SUM(MID(A1,2,1),MID(A1,4,1),MID(A1,6,1),MID(A1,8,1),MID(A1,10,1)),10)-(3*(SUM(MID(A1,1,1),MID(A1,3,1),MID(A1,5,1),MID(A1,7,1),MID(A1,9,1),MID(A1,11,1)))+SUM(MID(A1,2,1),MID(A1,4,1),MID(A1,6,1),MID(A1,8,1),MID(A1,10,1)))
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>> keep in mind the power of Antani
>>>> http://ilovemiliofede.altervista.org
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|
|