+ Reply to Thread
Results 1 to 5 of 5

Using a variable like "x" in excel

  1. #1
    Registered User
    Join Date
    05-12-2018
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    3

    Using a variable like "x" in excel

    Hi all

    here is my formula
    14=(93.4-x)0.088+(x).509+(5).179
    How can excel extract the value for x?
    Currently at a loss to find the answer.
    Thanks in advance

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,977

    Re: Using a variable like "x" in excel

    Excel cannot solve an equation like that for a variable the same way a person would. You can, however, use Solver to iteratively find a solution.

    You would place a value in a cell, such as A1. Then you would express your equation as an Excel formula, using A1 for x. For example, put this in B1:

    =(93.4-A1)*0.088 + A1*0.509 + 5*0.179

    Then you would open Solver, identify A1 as the value to vary, and set the goal as B1=14.

    You will have to bring up Help for Solver for a more complete explanation of how it works; it is too much for me to write out in a post where there is already a lot written about it.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-12-2018
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    3

    Re: Using a variable like "x" in excel

    Thanks for that reply
    I will try it out shortly

  4. #4
    Registered User
    Join Date
    05-12-2018
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    3

    Re: Using a variable like "x" in excel

    That worked
    Must practice using solver as it failed twice. Third time lucky

    Thanks very much

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Using a variable like "x" in excel

    There is also the possibility of using "Goal Seek" fond under "Data" tab, "What-If Analysis"

    a_goal_seek.jpg

    a2_goal_seek.jpg

    "," is the Scandinavian delimiter for decimals.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 PM
  2. Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  3. Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Replies: 1
    Last Post: 07-08-2005, 11:05 PM
  8. Replies: 1
    Last Post: 07-08-2005, 09:05 PM

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