+ Reply to Thread
Results 1 to 4 of 4

Text Changing, based on data

  1. #1
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Text Changing, based on data

    I need a way, in Excel, to change the text in a statement automatically, based on data.

    For example, if I put a statement that states "You now have 25 tries left"... the 25 may change to any number automatically, and probably is pointed to a cell of some sort. But how do I make a formula that allows the statement to stay the same, and the number just change automatically?

  2. #2
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    298

    Text changing, based on data

    hi!

    in A1: ="You have"&" "&B1&" "&"tries left"&"!"
    in B1: =enter the value as you wish!

    -via135



    Quote Originally Posted by seanrigby
    I need a way, in Excel, to change the text in a statement automatically, based on data.

    For example, if I put a statement that states "You now have 25 tries left"... the 25 may change to any number automatically, and probably is pointed to a cell of some sort. But how do I make a formula that allows the statement to stay the same, and the number just change automatically?

  3. #3
    Dave Peterson
    Guest

    Re: Text Changing, based on data

    ="You now have " & text(a1,"#,##0") & " tries left"
    or just
    ="You now have " & a1 & " tries left"
    if you don't care about the formatting.



    seanrigby wrote:
    >
    > I need a way, in Excel, to change the text in a statement automatically,
    > based on data.
    >
    > For example, if I put a statement that states "You now have 25 tries
    > left"... the 25 may change to any number automatically, and probably is
    > pointed to a cell of some sort. But how do I make a formula that allows
    > the statement to stay the same, and the number just change
    > automatically?
    >
    > --
    > seanrigby
    > ------------------------------------------------------------------------
    > seanrigby's Profile: http://www.excelforum.com/member.php...o&userid=34133
    > View this thread: http://www.excelforum.com/showthread...hreadid=539019


    --

    Dave Peterson

  4. #4
    Registered User
    Join Date
    05-04-2006
    Posts
    91

    Thanks!

    Excellent! Works Great! Thanks!

+ 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