+ Reply to Thread
Results 1 to 5 of 5

Formula to find number that yields zero in another cell

  1. #1
    Registered User
    Join Date
    09-20-2017
    Location
    Colombia
    MS-Off Ver
    2016
    Posts
    3

    Smile Formula to find number that yields zero in another cell

    Hello!

    I'm working on a calculation that requires finding a number in one of the cells that will yield zero on a check cell. The latter compares the result of the calculation to a value brought from a different formula.

    There are two cells in the formula that are calculated with percentages. I already enabled iterative calculations to allow circular references.

    See enclosed worksheet. I filled in cell E8 manually, but that is the value I need the formula to calculate automatically so that cell E28 yields zero.

    I cannot find the formula that will allow this calculation

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Formula to find number that yields zero in another cell

    Hello,

    consider using Goal Seek instead of a formula.
    2017-09-21_12-15-01.png

  3. #3
    Registered User
    Join Date
    09-20-2017
    Location
    Colombia
    MS-Off Ver
    2016
    Posts
    3

    Re: Formula to find number that yields zero in another cell

    Goal seek works like a charm to find the value, thanks I really appreciate it.

    However, I would have to do it manually every time the other values in the spreadsheet are updated.

    Would love to find a formula to avoid this!

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Formula to find number that yields zero in another cell

    The algebra may be tedious for this, but it looks like it should be straightforward.

    Working backwards:
    1) put 0 in G28
    2) G28=G26-G24. G26 is a constant, G24 is a function of x, so solve for G24 (Can we assume you can do the algebra?) and enter that formula into G24.
    3a) G24=G18+G20+G21+G22 G20 and G21 are constants G22 is a function of G18, and G18 is a function of x.
    3b) G22 is a function of G18 G22=constants*(G18+G20+G21)
    3c) Substitute G22 into 3a, rearrange and solve for G18. Enter formula into G18.
    4a) G18=G16+G14
    4b) G16=constant*G14 substitute into 4a and solve for G14. Enter formula into G14
    5) G14=G6+G8+G10+G11 G8 is the unknown, so solve for G8 and enter formula into G8.

    I worked through that quickly, so be sure to check my algebra and thought process. I know the algebra is tedious, but that is the process I use to get the inverse of a function like this. If your algebra is rusty, this may help loosen those gears up: http://www.purplemath.com/modules/solvelin.htm Is that enough of a nudge, or do you need further assistance with the algebra here.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    09-20-2017
    Location
    Colombia
    MS-Off Ver
    2016
    Posts
    3

    Re: Formula to find number that yields zero in another cell

    Thanks, will check it out!

+ 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. Replies: 1
    Last Post: 10-16-2014, 08:08 PM
  2. [SOLVED] Simple formula using IF and SUM - yields unexpected error
    By Frankie7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2014, 09:04 PM
  3. MIN formula yields inaccurate result when using negative number
    By Andersen6422 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2013, 09:50 PM
  4. auto sum yields wrong number
    By Jeroen1000 in forum Excel General
    Replies: 5
    Last Post: 10-19-2009, 05:59 AM
  5. Replies: 4
    Last Post: 11-17-2005, 09:15 PM
  6. Replies: 8
    Last Post: 08-08-2005, 09:05 PM
  7. [SOLVED] ACCRINT formula yields incorrect result
    By Onurali_k in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-24-2005, 02:06 PM

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.6.0 RC 1