+ Reply to Thread
Results 1 to 5 of 5

Combining Text Value with Numbers and evaluating

  1. #1
    Registered User
    Join Date
    06-29-2007
    Posts
    6

    Combining Text Value with Numbers and evaluating

    I have two separate cells. One is a number, for example cell B1 with a value
    of 0.109. The other, B2, is in the format "* A1". I'm trying to combine the
    two cells so they will display the value of "0.109 * A1", where A1 is a
    reference to the cell A1. I've copied these cells from another program and
    Excel does not seem to recognize that the text "* A1" works in a formula.
    I've tried using a formula like

    B1&B2
    or
    B1+B2

    but the formatting is not correct and excel just displays the function
    without evaluating it to the number it should represent. Any suggestions?

    thank you

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Here's one way.. that'll work if you are putting result in the adjacent cell to the input values...

    Select the cell you want the result to go in (B3) and then go to Insert|Name|Define and enter name: Evaluation

    In the Refers to field enter formula: =EVALUATE(Sheet1!$B1&Sheet1!$B2)

    where B1 and B2 are your 2 input cells (and B3 is where you are going to have a result)

    Click Ok

    Now in B3, enter formula =Evaluation
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-29-2007
    Posts
    6

    Thank you!

    You have made my life so much easier. It worked like a charm. Thank you so much.

  4. #4
    Registered User
    Join Date
    06-29-2007
    Posts
    6

    One More thing

    I got the Evaluation thing working great, but I have one last request.

    The values from the =Evaluation cells do not auto-update (i.e. if I change the value of A2, the cells don't register that and readjust). Is there anyway I can have the =evaluation cells auto-update or a macro that I can make to cause these to update.

    Thank you so much.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Sorry, I am not a VBA programmer so I am not the best way to do this.. hopefully someone can chime in to assist....?

+ 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