Excel goal seek doesn't go through a macro

Closed
Report
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
Hello,

I'm trying to use the goal seek function of excel to seek out a particular value of a cell (say Y) by changing values of another (say X).

Problem is, Y is arrived at through a macro that runs when X changes, and not simple Excel formulas.

When goal seek runs, although it keeps changing the X values while looping, the changes don't reflect on Y and thus it can't find a solution.

Goal seek works perfectly if I remove the macro and write (a short and simplified version of) Y using formulas. But I need the macro to have Y right.

Any ideas?

Regards,
Mrunmoy

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc
AND post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too.


Note:
your data need not be to be real data but a good representative of how data looks like