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. Anonymous
    2024-08-06T05:50:28+00:00

    Anish, this formula does exactly what I need.

    Thank you so very much for taking time to respond.

    Was this answer helpful?

    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Anonymous
    2024-08-05T16:06:57+00:00

    Thank you for providing a response.

    The formula needs to be carried through to a separate worksheet, so that when a letter is entered, the cell below will assign the the relevant number so it looks like the example attached:

    The sequence is listed on a separate tab as shown:

    Thank you, Rachael

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more