Numbers&letters calculation

doriannjeshi

Board Regular
Joined
Apr 5, 2015
Messages
214
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I want to find the current letter if the Value is specified . All the letter values (according to the table) start being added to each other until we get the Value being asked to show the letter.





wordValuecurrent letter formula
1Aangel30G
2Bdark5A
3Clanguages20A
4D
5E
6F
7G
8H
9I
1J
2K
3L
4M
5N
6O
7P
8Q
9R
1S
2T
3U
4V
5W
6X
7Y
8Z
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
sorry I did not understand your question if value 5 is added then you want letter E shown in your last column?
 
Upvote 0
sorry I did not understand your question if value 5 is added then you want letter E shown in your last column?
Hi Anand,
Sorry, I need to give the steps for calculations
basically I need the last letter to be added to reach the asked value, the addin restarts from the first letter if value not reached

wordValuecurrent letter formulacalculations
1Aangel30Ga1+n5+g7+e5+l3+a1+n5=27+G7;=G
2Bdark5Ad4+1a=5;=A
3Clanguages20Al3+a1+n5+g7+u3+a1=20;=A
4D
5E
6F
7G
8H
9I
1J
2K
3L
4M
5N
6O
7P
8Q
9R
1S
2T
3U
4V
5W
6X
7Y
8Z
 
Last edited:
Upvote 0
2 ideas to get you started.
Strike the second idea; the numbers do not continue to ascend in column A.
You might get better results if you post the information with the forum's tool named XL2BB.

T202301a.xlsm
ABCDE
1ABEHH
21A
32B
43C
54D
65E
76F
87G
98H
1f
Cell Formulas
RangeFormula
D1D1=XLOOKUP(XLOOKUP(LEFT(C1,1),B2:B6,A2:A6)+XLOOKUP(MID(C1,2,1),B2:B6,A2:A6)+XLOOKUP(MID(C1,3,1),B2:B6,A2:A6),A2:A9,B2:B9)
E1E1=CHAR(CODE(LEFT(C1))-64+CODE(MID(C1,2,1))-64+CODE(MID(C1,3,1))-64+64)
 
Upvote 0
Maybe cancel all of the above

T202301a.xlsm
ABCDEF
18ABEE
21A
32B
43C
54D
65E
76F
87G
98H
1f
Cell Formulas
RangeFormula
F1F1=XLOOKUP(B1-(XLOOKUP(LEFT(C1,1),B2:B6,A2:A6)+XLOOKUP(MID(C1,2,1),B2:B6,A2:A6)),A2:A9,B2:B9)
 
Upvote 0
Maybe cancel all of the above

T202301a.xlsm
ABCDEF
18ABEE
21A
32B
43C
54D
65E
76F
87G
98H
1f
Cell Formulas
RangeFormula
F1F1=XLOOKUP(B1-(XLOOKUP(LEFT(C1,1),B2:B6,A2:A6)+XLOOKUP(MID(C1,2,1),B2:B6,A2:A6)),A2:A9,B2:B9)
Thank you for the solution Dave!
does this solution require office 365?
also does it work if last letter is a G ?
 
Upvote 0
Thank you for the solution Dave! This is not a solution but ideas that may help you.
does this solution require office 365? The solution does not require 365 but it does use XLookup. Is Xlookup in 2019.
You can use other lookups but some alternatives may require different lookup tables.
also does it work if last letter is a G ? I do not know. You will have to expand the ranges and check the ideas.
 
Upvote 0
You might get better results if you post the information with the forum's tool named XL2BB.
OP did that in post #1. ;)

1673479770811.png
 
Last edited:
Upvote 0
OP did that in post #1.
.. but probably better if you use Mini Sheet rather than Table Only :)

Can we
  1. Use helper columns for your version if you want to use worksheet formulas?
    or
  2. Use vba? Post back if you want this.
For a worksheet formula solution, see if this would do what you want.
Copy the column H formulas across as far as you think you might need. If you copy them further or less than column Z as I have done then make sure you adjust the "Z"s in the column F formula to match

23 01 12.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1wordValueLetter
21Aangel30G1575315753157531575
32Bdark5A4192419241924192419
43Clanguages20A3157317513157317513
54D
65E
76F
87G
98H
109I
111J
122K
133L
144M
155N
166O
177P
188Q
199R
201S
212T
223U
234V
245W
256X
267Y
278Z
Letter
Cell Formulas
RangeFormula
H2:Z4H2=INDEX($A$2:$A$27,MATCH(MID($D2,MOD(COLUMNS($I:I)-1,LEN($D2))+1,1),$B$2:$B$27,0))
F2:F4F2=UPPER(MID(D2,MOD(MATCH(E2,SUBTOTAL(9,OFFSET(H2,,,,COLUMN(H2:Z2)-COLUMN(H2)+1)))+ISNA(MATCH(E2,SUBTOTAL(9,OFFSET(H2,,,,COLUMN(H2:Z2)-COLUMN(H2)+1)),0))-1,LEN(D2))+1,1))
 
Upvote 0
Solution
.. but probably better if you use Mini Sheet rather than Table Only :)

Can we
  1. Use helper columns for your version if you want to use worksheet formulas?
    or
  2. Use vba? Post back if you want this.
For a worksheet formula solution, see if this would do what you want.
Copy the column H formulas across as far as you think you might need. If you copy them further or less than column Z as I have done then make sure you adjust the "Z"s in the column F formula to match

23 01 12.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1wordValueLetter
21Aangel30G1575315753157531575
32Bdark5A4192419241924192419
43Clanguages20A3157317513157317513
54D
65E
76F
87G
98H
109I
111J
122K
133L
144M
155N
166O
177P
188Q
199R
201S
212T
223U
234V
245W
256X
267Y
278Z
Letter
Cell Formulas
RangeFormula
H2:Z4H2=INDEX($A$2:$A$27,MATCH(MID($D2,MOD(COLUMNS($I:I)-1,LEN($D2))+1,1),$B$2:$B$27,0))
F2:F4F2=UPPER(MID(D2,MOD(MATCH(E2,SUBTOTAL(9,OFFSET(H2,,,,COLUMN(H2:Z2)-COLUMN(H2)+1)))+ISNA(MATCH(E2,SUBTOTAL(9,OFFSET(H2,,,,COLUMN(H2:Z2)-COLUMN(H2)+1)),0))-1,LEN(D2))+1,1))
I thought it couldn't be done!!
Thank you very much for the colossal solution!
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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