×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

(OP)
What I want to do is basically to set up a spread sheet that contains a bunch of formulas.
For example lets us the F=ma formula to illustrate.
I dont know any of these numbers initially...
Is there a way that I can set up a formula that will work out the remaining value if I know just two of these variables.
the first case f= ? I know m and know a
the second case i know f and I know m a=?
last one I know a and I know f m=?
I want to have input cells that I can enter any combination of two variable and get the third one out.
I want to use the minimum number of cells to achieve this too.
How do I do this in Excel.
I have seen it done somewhere I can remember but I want to have a preset spreadsheet with formulas to allow me to plug in known values and work things out with multiple arrangements lying around.
Is this possible?

### RE: Smart formulas preset spreadsheet?

I can see it done with 3 inputs for F, M & A, and a nested IF formula (4 cells used). The formula would look at the inputs and return one of the values given the presence of the other 2. You could even build text into the formula to return "a = "&(F/M), etc. It would be a really long formula, but it could work...

### RE: Smart formulas preset spreadsheet?

If all you're going to do is put down every possible equation, You could simply name cells with variable names and simply put each equation into a separate cell, using the defined names. Each equation would have an IF statement checking to see if any of its inputs are blank, and if so, that IF would output a blank. The one cell formula with all its variables defined will produce the right answer.

TTFN
FAQ731-376: Eng-Tips.com Forum Policies

Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers

### RE: Smart formulas preset spreadsheet?

To do the F=ma example in four cells, three input cells a, m, F, and one output cell. Enter values in the two knowns, and a keyword like "solve" in the third. For something simple like this, a nested if statement would work in the output cell, like:

= if (a = "solve",F/m,if(m = "solve", F/a,if(F = "solve", m*a)))

for more complex equations, the same thing can be accomplished in a user defined function.

= SolveFMA(F,m,a)

### RE: Smart formulas preset spreadsheet?

@IRstuff, I agree if it were my spreadsheet I would do it in 6 cells. 3 for inputs, 3 with IF statements looking for the existence of the other 2 variables and formula to provide result. I just wanted to encourage the single nested IF formula for the OP challenge of "least number of cells".

### RE: Smart formulas preset spreadsheet?

(OP)
Thanks Guys,
Im looking to make a spreadsheet with a lot of formulas. Kinda plug it in to get quick results etc.
I am inclined to go for the 4 cell approach.
3 cells for input and one for out put.

As for TKSolver I have not heard of it but I have blown my budget on MS Project so I can update my skills as everyone seems to want engineers to drive MS Project at the minute.

anyhow

Thanks

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

#### Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a partâ€™s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!