+ Reply to Thread
Results 1 to 7 of 7

Assign text to cells

  1. #1
    Registered User
    Join Date
    12-07-2011
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Assign text to cells

    Since I'm a good way through this project I hope that someone with greater expertise can solve this latest problem:

    I want to assign a range of possible texts to a cell - potentially about 100 - such that when the user places a 1 in cell A1 the first statement appears alongside in A2, when a 3 is placed in A1 the third statement appears in A2, etc. My initial thought of nesting IF statements is both unwieldy and impossible. Hopefully someone can advise.

    Thank you
    Last edited by Squig; 12-13-2011 at 08:24 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Assign text to cells

    Hi and welcome to the board
    If you build a table with numbering from 1 to ... in the first column and the statemenst in the second ( say range E1:F100), you can retrieve the statements with =Vlookup(A1,$E$1:$F$100,2,false) and pull down as necessary

    Adapt the ranges to your needs

  3. #3
    Registered User
    Join Date
    12-07-2011
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Assign text to cells

    Thanks Arthur

    Will this take approx 100 statements?

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Assign text to cells

    What do you mean ? How many statements do you have?

  5. #5
    Registered User
    Join Date
    12-07-2011
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Assign text to cells

    Currently about 60 -70!

  6. #6
    Registered User
    Join Date
    12-07-2011
    Location
    Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Assign text to cells

    Hi Arthur

    A bit of tweaking for my personal circumstances and it seems to be working perfectly! The next part is going to take me an age to input but should save hundreds of hours in the long term. Thanks for your help!

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Assign text to cells

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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