That is because your example only showed upper case letters... you never mentioned lower case, numbers or special characters, so there was no way for me to know to account for them.
So you don't want A to be 1, B to be 2, etc. like you showed in your first message? I'm confused... you seem to now be saying that you want the coding to be the ASCII value of the character except for digits which you want to be the number itself and not its ASCII value? Or are you saying you will want to vary the coding maybe making, say, an "A" 1 the first time, 65 another time and still some other value in a future run? If so, how did you want to specify the coding? How about this... on a separate sheet (tell me the name you will give that sheet so I can include it in my code), you put the character in the row whose number you want to assign to it. So, if you wanted an "A" to be 1, you would put the letter "A" in cell A1... if you wanted an asterisk to be 2, you would put an asterisk symbol in cell A2, and so on. That way I could simply read the characters from cell A1 down to cell A256 (assuming you wanted to encode every symbol) into my program and use the row the character came from as its code. I could even make it so that you could specify the column to read from... that way you could set up multiple encodings, one per column, and then tell the program I write which column to use. How does that sound?
Thanks for your patience and sorry for the unclear information. I unable to attach the excel sheet hence I am trying to provide as much as possible here.
My assigned values for ASCII codes from
32 to
126 are as follows and I’m using these
value sets in below respective 'array formula' to get the sum of word’s assigned values in a cell.
Value set 1
0,0,0,0,0,0,10,0,0,0,13,14,0,0,0,9,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,0,0,0,0,0,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,0,0,0,0
here
32 (space) =
0,
33 (!) =
0,………,
73=
9,………
126 =
0
{=SUM( 1* CHOOSE(CODE(MID(A2, ROW(INDIRECT( "1:" & LEN(A2))), 1))-31, 0,0,0,0,0,0,10,0,0,0,13,14,0,0,0,9,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,0,0,0,0,0,3,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,0,0,0,0))}
I used this formula in cells
B2, B3, B4 & B5 to get the sum of cells
A2, A3, A4 & A5 respectively as per
Values set 1.
Value set 2
0,0,0,0,0,0,10,0,0,0,10,20,0,0,0,3,0,1,2,3,4,5,6,7,8,9,0,0,0,0,0,0,5,1,2,3,4,5,8,3,5,1,1,2,3,4,5,7,8,1,2,3,4,6,6,6,5,1,7,0,0,0,0,0,5,1,2,3,4,5,8,3,5,1,1,2,3,4,5,7,8,1,2,3,4,6,6,6,5,1,7,0,0,0,0
here
32 (space) =
0,
33 (!) =
0,………,
73=
1,………
126 =
0
I used this formula in cells
D2, D3, D4 & D5 to get the sum of cells
A2, A3, A4 & A5 respectively as per
Values set 2.
[TABLE="width: 439"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]
Word
[/TD]
[TD]
Value Set 1
[/TD]
[TD]
WordSum1
[/TD]
[TD]
Value Set 2
[/TD]
[TD]
WordSum2
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Xyz
[/TD]
[TD]21
[/TD]
[TD]46
[/TD]
[TD]13
[/TD]
[TD]68
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]a2c*r
[/TD]
[TD]28
[/TD]
[TD]25
[/TD]
[TD]18
[/TD]
[TD]85
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]1243
[/TD]
[TD]10
[/TD]
[TD]94
[/TD]
[TD]10
[/TD]
[TD]94
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]ABC
[/TD]
[TD]6
[/TD]
[TD]35
[/TD]
[TD]6
[/TD]
[TD]35
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet Name is “
Num Calculator” and
I am looking for the
WordSum1 in Cell
C2 using
value set 1 and
WordSum2 in Cell
E2 using value set 2.
In future, I will assign the values with value set3, value set4 and update the code with WordSum3 & WordSum4 if required.
Thank you.