+ Reply to Thread
Results 1 to 3 of 3

Convert a number to a specific word when typed into a cell?

  1. #1
    Registered User
    Join Date
    10-08-2021
    Location
    New Zealand
    MS-Off Ver
    2102
    Posts
    1

    Convert a number to a specific word when typed into a cell?

    Hi, I've never used this forum and have barely used excel, so sorry if I break some forum etiquette or whatever

    I want a function which can convert a number to a specific word, e.g. if I type "1" into cell A1 I want it to convert to the word "Black", or "2" to "Blue" if this is possible.


    I will add a bit of context.
    I play this game where there are 15 other players at the start + yourself. Each player is assigned a colour, and I want to make an excel sheet that I can have open alongside this game. Here I want to write down all the players quickly by using numbers and having excel convert them to colours for me (I would have to remember each value for each colour).

    The ingame list is never alphabetical and can be different each time, as there is only a certain number of possible colours, and others will be excluded (e.g. a 16 player game might not have the colours "blue", "orange", or "ochre").
    This means I cannot just use a prewritten list, since it is different every time.

    E.g. A sample list of players, and what I would want to do in the excel sheet:
    Brown
    Blue
    Violet
    Red
    Orange

    In excel sheet (arbitrary values right now, I will order the possible colours later):
    Type "4" into a cell ---> "Brown"
    Type "5" ---> "Blue"
    Type "12" ---> "Violet"
    Type "9" ---> "Red"
    Type "7" ---> "Orange"



    Separately, I would have cells where I would note down information on these players (off-topic but it might help you understand), and help me in making judgements about them.
    There is no in-game function for this sort of thing, and I currently use a notepad document where I have to write down every single of the 16 players down individually (time-consuming), I want to make this process more efficient.

    Thank you.
    Last edited by takatapui; 10-08-2021 at 09:31 AM.

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Convert a number to a specific word when typed into a cell?

    Hi takatapui,
    You can do this through VBA but it is complicated due to the constantly changing colors and numbers. Can you put a number in one column and have the color word appear in another column or must it be replaced in the exact cell?
    Can you use actual colors with conditional formatting?
    Last edited by Squeaky; 10-08-2021 at 12:02 PM.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Convert a number to a specific word when typed into a cell?

    Administrative Note:

    Welcome to the forum.

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. Yours is not: 2102 is merely a release number, probably for MS365, which would be what you need in your profile. Please update this. Thanks.

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup or formula to return a number related to a word that is typed into a cell
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 77
    Last Post: 12-08-2020, 02:33 AM
  2. [SOLVED] How To Convert Mixed Typed Column To Number Once?
    By zanshin777 in forum Excel General
    Replies: 2
    Last Post: 07-27-2020, 03:20 AM
  3. Convert number to equivalent time when typed in
    By estratosphere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2015, 08:26 AM
  4. Replies: 6
    Last Post: 04-08-2013, 05:12 PM
  5. [SOLVED] Number in cell convert in word
    By Rajiul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2005, 04:05 AM
  6. [SOLVED] how do I make a word typed in a cell go to a specific cell in anot
    By Lmatarazzo in forum Excel General
    Replies: 3
    Last Post: 04-21-2005, 12:06 AM
  7. copy a number typed in a cell to another & change it to word form.
    By ex:1 in a cell = one in a different cell in forum Excel General
    Replies: 1
    Last Post: 04-20-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1