+ Reply to Thread
Results 1 to 7 of 7

Formula to assign a word to each number?

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    miami, fl
    MS-Off Ver
    Excel 2003
    Posts
    3

    Formula to assign a word to each number?

    Hello!

    Anyone know of a formula where I can take a number from an adjacent cell and have it autofill a word?


    I have the numbers .4, .6, .8, 1, 1.2, 1.4, 1.6, 1.8 and 2. For each of these that appear in collumn F, I want it to autofill a correspoonding text (#E6FFE6, #CCFFCC, #99FF99, #66FF66, #00FF00, #00B200, #008000, #004C00, #001A00) into collumn G.

    Any suggestions??

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to assign a word to each number?

    index and match.

    set up a table and then use a combination of those functions
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to assign a word to each number?

    How about..

    =lookup(F1,{0.4,0.6,0.8,1,1.2,1.4,1.6,1.8,2},{"#E6FFE6","#CCFFCC","#99FF99","#66FF66","#00FF00","#00B200","#008000","#004C00","#001A00"})
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to assign a word to each number?

    that will work but surely its easier to set up a table

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    miami, fl
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Formula to assign a word to each number?

    Brilliant!! worked like a charm. Thanks to you both!

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to assign a word to each number?

    No problem remember to star tap those that helped and mark solved

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Formula to assign a word to each number?

    @ kwall2011

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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