Autofill Mathematics Algorithm??

Regal24

New Member
Joined
Jan 2, 2010
Messages
7
Hi all

I am trying to find out whether it is capable in MS Excel to write an algorithm or some sort of VBA code whereby excel will fill in the "blanks" of a formula to give pre-determined results. Let me try to explain myself more clearly.

Say for example I had 2 equations.

Equation #1: (a + b)*c = d

Equation #2: (w - x)/y = z

Both answers must be above a certain value. This value will be pre-determined, so for this example lets say that value is 100.

Is there anyway of getting excel to fill in the "blanks" (in this example, a,b and c; and w, x and y) of the equations to make each answer above that of the pre-determined value (100 for example)?

Quite complex (to me anyway!) and hopefully I have explained as fully as possible.

Thanks for any help

Sam
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I don't know. The problem, as I see it, if you are not trying to solve for a single value. You have multiple unknowns, and your formulas aren't related to one another.
So the number of answers that will work are infinite. Not sure how you expect Excel to return an infinite number of solutions...
 
Upvote 0
Upvote 0
Hi,
describe, please, Your problem more precisely... Give us an extended example and a desired result... Best regards.
 
Upvote 0
For any pair of numbers {a,b}, a <> -b, there is a number c that satisfies (a+b)*c = 100, i.e., c=100/(a+b). So you could enter random values for a and b and solve for c. All values of c greater than that (in absolute value) fulfill the inequality. Similarly, you could choose random values for a and c or b and c and solve for the remaining variable.

Ditto, with a change of signs, for the second equations.
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top