+ Reply to Thread
Results 1 to 15 of 15

Alternatives to using goal seek which works continuously

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Alternatives to using goal seek which works continuously

    I want to insert a formula in B10 cells which generates a value which brings G12 cell value to 0 (in other words b8 value equals b11).

    I have already used Goal Seek and Solver but it generates number just once not on a continuous basis
    Attached Files Attached Files
    Last edited by ysb1234; 07-03-2014 at 07:49 AM.

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Need Help with a formula

    Oh man..
    I have made a shortcut for you.... ie Ctrl + q
    just use it will automatically reduce that cell to zero..
    check the attachment..
    and remember to enable macros.. while opening the workbook
    Click * to appreciate...
    Attached Files Attached Files

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Need Help with a formula

    if helped click *

  4. #4
    Registered User
    Join Date
    07-03-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: Need Help with a formula

    Hi Vikas,

    Thanks for the brilliant solution!..much appreciated

    Is it possible to add a formula in the cell instead of Macros and goal seek? So that I dont have to keep refreshing the Goal seek?
    Last edited by ysb1234; 07-03-2014 at 06:15 AM.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Need Help with a formula

    okay..
    I just provide that...

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Need Help with a formula

    perfect...
    I have made it automatic...
    check the attachment...


    waiting for *

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need Help with a formula

    Vikas_Gautam

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification. Do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  8. #8
    Registered User
    Join Date
    07-03-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: Need Help with a formula

    Dear Moderator, the title has been changed. Thanks for pointing out

  9. #9
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Alternatives to using goal seek which works continuously

    I have made it automatic..
    Got the solution man..
    waiting for *
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-03-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: Alternatives to using goal seek which works continuously

    Hi Vikas,

    Thank you for all the help!

    Can you please tell me how did you make it automatic? ... I may have to use the method in other excel sheets. I am a beginner with Macros.

  11. #11
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Alternatives to using goal seek which works continuously

    press alt + f11
    click sheet one..
    copy the following code and paste there....
    yes remember to change (General) to worksheet...

    Please Login or Register  to view this content.
    waiting for *

  12. #12
    Registered User
    Join Date
    07-03-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    5

    Re: Alternatives to using goal seek which works continuously

    Thank you very much

  13. #13
    Registered User
    Join Date
    01-30-2019
    Location
    Toronto
    MS-Off Ver
    10
    Posts
    1

    Re: Alternatives to using goal seek which works continuously

    Very useful code, thank you for sharing! The code can be tweaked to make the target value dynamic and it can be extended to include multiple cells. Here is how it reads:

    Sub Worksheet_SelectionChange(ByVal Target As Range)
    Range("K68").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L68")
    Range("K69").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L69")
    Range("K70").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L70")
    Range("K71").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L71")
    Range("K77").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L77")
    Range("K80").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L80")
    Range("K81").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L81")
    Range("K88").GoalSeek Goal:=Range("H90"), ChangingCell:=Range("L88")

    End Sub

  14. #14
    Registered User
    Join Date
    11-19-2020
    Location
    wivenhoe, england
    MS-Off Ver
    office 365
    Posts
    1

    Re: Alternatives to using goal seek which works continuously

    thank you that has helped a lot... I would like to have more than one automated goal seek in the same sheet i.e. goal seek different cells each from different values?

    thanks G

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Alternatives to using goal seek which works continuously

    Quote Originally Posted by grahamlew View Post
    thank you that has helped a lot... I would like to have more than one automated goal seek in the same sheet i.e. goal seek different cells each from different values?

    thanks G
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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