Complex problem

Alexsander

New Member
Joined
Nov 25, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi everyone, I have a somewhat complicated problem here.

I have a first sequence of two fixed numbers (0 and 9) and 11 variable numbers with a 12th digit that is generated according to some assumptions.
The premises are, that each unit of the first sequence must be multiplied by a specific weight and the sum of these results I will divide by 11 and what is left of this division I will use in a subtraction of 11.
This result will indicate which digit of that string will be.

An example to make it easier:

Using the sequence 09 (fixed numbers) and 00000000001 with their respective weights (2,7,6,5,4,3,2,7,6,5,4,3,2)

The sum of the individual multiplication of each number by its weight is 65.

Dividing 65 by 11 gives a result of 5 with a remainder of 10.

I use the remainder to subtract from 11: 11-10=1

The reference for the check digit is 1, following the digit table.


The main issue is that I need to find some way to add a unit to the 11 variable numbers and repeat the process to generate the check digit. How can I best do this?
 

Attachments

  • No title.png
    No title.png
    28.3 KB · Views: 11

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi everyone, I have a somewhat complicated problem here.

I have a first sequence of two fixed numbers (0 and 9) and 11 variable numbers with a 12th digit that is generated according to some assumptions.
The premises are, that each unit of the first sequence must be multiplied by a specific weight and the sum of these results I will divide by 11 and what is left of this division I will use in a subtraction of 11.
This result will indicate which digit of that string will be.

An example to make it easier:

Using the sequence 09 (fixed numbers) and 00000000001 with their respective weights (2,7,6,5,4,3,2,7,6,5,4,3,2)

The sum of the individual multiplication of each number by its weight is 65.

Dividing 65 by 11 gives a result of 5 with a remainder of 10.

I use the remainder to subtract from 11: 11-10=1

The reference for the check digit is 1, following the digit table.


The main issue is that I need to find some way to add a unit to the 11 variable numbers and repeat the process to generate the check digit. How can I best do this?
Try this:
Book1
ABCDEFGHIJKLMNOPQR
1FixedVariableSumproductDigitFinal Result
2Values0900000000001651000000000011
3Multiplier2765432765432
Sheet1
Cell Formulas
RangeFormula
P2P2=SUMPRODUCT(C2:O2,C3:O3)
Q2Q2=11-MOD(P2,11)
R2R2=CONCAT(E2:O2,Q2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top