+ Reply to Thread
Results 1 to 6 of 6

Thread: reference to number, inserted into text?

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    reference to number, inserted into text?

    I want to display an equation as text in a cell. I'll use an example to try to explain.

    For example, Cell G7 is displaying "2.5" (without the quotes, of course)

    I want to insert that "2.5" into another cell, G8 perhaps so that G8 will display this:

    Y = $10,000 + $2.5X

    I want to be able to automatically change the "2.5" to whatever the contents of the adjacent cell happens to be. The "Y = $10,000 + $" and "X" do not need to change. Is there a way to do this?
    Last edited by bksmu; 09-20-2011 at 12:53 AM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: reference to number, inserted into text?

    Hi,

    How about G8
    ="Y = $10000 + $"&G7&" X"
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    03-05-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: reference to number, inserted into text?

    How do I delete this reply?

  4. #4
    Registered User
    Join Date
    03-05-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: reference to number, inserted into text?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    How about G8
    ="Y = $10000 + $"&G7&" X"
    Excellent, Thank you Richard. However, now it is displaying the actual value of the cell I'm referencing, all 8 or 9 digits or however many. Can I force it to display only the number of decimals displayed in the referenced cell?

    What I have: Y = $10,000 + $1.3333333333X

    What I want: Y = $10,000 + $1.33X

  5. #5
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: reference to number, inserted into text?

    Hi,

    The following will display 2 dec. places. Is that what you want?

    ="Y = $10000 + $"&TEXT(G7,"0.00")&" X"
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  6. #6
    Registered User
    Join Date
    03-05-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: reference to number, inserted into text?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    The following will display 2 dec. places. Is that what you want?

    ="Y = $10000 + $"&TEXT(G7,"0.00")&" X"
    Jackpot, thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0