Ersbygubben
Programmer
We use referensnumbers in invoices etc. and one is calculated so that you multiply the ref.numbers last digit with 7, the second last with 3, the third last with 1 and the fourth again with 7, the fifth with 3 and so on. The results you get you add and get a number. This number is rounded up to the nearest 10:th and your original sum is deduced from this and the differensce is the controlnumber:
123456
137137
1+6+21+4+15+42=89
90
-89
_____
1 so the referencenumber will be 123561
Now I need an automatic formula to calculate this when i fill in a referencenumber in a cell (since the invoice is created in Excel). Can it be done? Can an entering of a number act as a starter of a macro? Anyone have an idea?
123456
137137
1+6+21+4+15+42=89
90
-89
_____
1 so the referencenumber will be 123561
Now I need an automatic formula to calculate this when i fill in a referencenumber in a cell (since the invoice is created in Excel). Can it be done? Can an entering of a number act as a starter of a macro? Anyone have an idea?