+ Reply to Thread
Results 1 to 8 of 8

Using Excel for text variables

  1. #1
    Registered User
    Join Date
    09-04-2007
    Posts
    4

    Using Excel for text variables

    Hey all,
    I can't figure a better way to do this so I am turning to Excel.

    What I would like to do is be able to enter for example 'Joe' into a cell, hit tab and have another cell update to 'Hi Joe, how are you Joe'.
    It's more involved than that but if I can get started with that basic thing I think I can figure the rest out.

    I know Excel isn't ideal for this but it should be possible isn't it? I've also looked into javascript, Flash, Word and standalone programs but can't come up with a good solution.

    TY!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi Dreamking11,

    Welcome to the forum, how about this, in B1 and Joe in A1

    Please Login or Register  to view this content.
    then when you fill in A1 and hit enter you get

    Hi Joe, how are you Joe
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    09-04-2007
    Posts
    4
    Super, thanx oldchippy!
    One more thing... how can I add a carriage return to the end of the line so that I can put 'Mary' in A2 and get:

    Hi Joe, how are you Joe
    Hi Mary, how are you Mary

    I've turned word wrap in the cell on and tried alt+enter

    =IF(A1="","","Hi "&A1&", how are you "&A1)
    =IF(A2="","","Hi "&A2&", how are you "&A2)

    But the cell says 'false'...
    Last edited by dreamking11; 09-04-2007 at 04:24 PM.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this it may be what you want?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-04-2007
    Posts
    4
    Thanx a lot for the effort. That's almost it except that each needs to be on it's own line by coding. Is that possible?
    What I am trying to accomplish is to make it generate a list that needs to be pasted elsewhere, with each entry on it's own line.
    Last edited by dreamking11; 09-04-2007 at 04:51 PM.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    How about the other way Joe in A1 and Mary in A2, with the formula in B1, then another formula in B2

    =IF(A1="","","Hi "&A1&", how are you "&A1)

    =IF(A2="","","Hi "&A2&", how are you "&A2)

    So that they are under each other?

  7. #7
    Registered User
    Join Date
    09-04-2007
    Posts
    4
    Okay yes, I didn't realize that I could select multiple cells and copy/paste them to make a list that way.
    Thanks for your efforts this is going to save me a lot of work!

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Glad to help - thanks for the feedback

+ 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