Share via

Multiple problem formula required.

Anonymous
2024-08-05T15:15:22+00:00

Hi. I am trying to create a formula so that I can enter any letter from the alphabet into a cell, and it will return with a number from 1-9
For example; A=1, B=2.... I=9, J=1, K=2,.... etc, so Z=8. The letters go from 1-9 and then start at 1 again, so the formula will read the letter and return the corresponding number.
I'm basically converting names into numbers, so I need to calculate the total number (I hope this makes sense). For example, L I S A would return 3 + 9 + 1 + 1
If you're able to assist, thank you

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 102K Reputation points Volunteer Moderator
2024-08-06T00:01:05+00:00

Hi,

In cell E1, enter this formula

=MOD(SUM(XLOOKUP(MID(D1,SEQUENCE(LEN(D1)),1),A1:A26,B1:B26))-1,9)+1

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Ashish Mathur 102K Reputation points Volunteer Moderator
    2024-08-06T22:47:27+00:00

    You are welcome.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-08-06T05:51:31+00:00

    Thank you. I wasn't sure of which formula that was needed. Thank you for clarifying, and taking the time to respond.

    Was this answer helpful?

    0 comments No comments