As noted, we're going to need to know some specifics of what you want to do in order to give specific help. A few ideas of things to look at:
1) The built in IF worksheet function can be used to make some basic decisions. From what I gather, your problem involves some decision making (If/then statements). You might review Excel help for the IF function and see if that can be used as part of your solution.
2) A lot of times, complicated IF functions can better be respresented using a lookup table. See Excel help for VLOOKUP and other lookup functions if needed.
3) For many engineering calculations that I do, I've found that I can simplify the spreadsheet side of things by using a VBA user-defined function (UDF). There are disadvantages to UDF's, so you'd want to be judicious in using this option. The advantage I've found is that a UDF can allow me to take a complex equation or something involving multiple decisions and pack it into a single function. See VBA help for the FUNCTION statement. Basic idea is:
Function myudf(arglist)
code to calculate function result
myudf=functioin result
end function
You can then call the UDF from the spreadsheet like any of the built in functions =myudf(A1,A2,...). I've even used UDF's to return arrays to multiple cells, so even that aspect can be accomplished.
On the surface, this seems like the closest thing to what you originaly asked for. Used judiciously, this could be a useful approach.
Hope that helps. Let us know specifics and perhaps we can help further.
Bookmarks