G'day Faz, (that's an interesting name)
thanks for the time and energy spent in the explanation,
I have saved it to word proc doc.
Any hints on where to begin, when attempting to reverse
engineer a formula?
here is one I use in MSWorks as an example:
=IF(ISERROR(SMALL(IF($B$1:$B$64448=B64453,ROW($E$1:$E$64448)),$F$1517)),0,INDEX($E$1:$E64448,SMALL(IF($B$1:$B$64448=B644
53,ROW($E$1:$E$64448)),$F$1517)))
Where does one start?
I presume there must be an accepted order the
computer must read not necessarily left to right.
|
| Hi Mifty, that's a nice name.
|
| Basically, formulae or equations are just commands for the computer, so
| that it knows exactly what calculations to make. I consider it to be
| translating English to the language that the spreadsheet knows.
|
| This first equation is an example of a nested IF statement. IF
| statements are usually presented like this
| =IF(A1=8,"Yes","No")
| This example is telling the computer, if cell A1 is equal to 8, then
| this cell will be "Yes", otherwise "No". Nested IF statements are IF
| statements within IF statements, like this
| =IF(A1>80%,"A",IF(A1>70%,"B",IF(A1>60%,"C",IF(A1>50%,"D",IF(A1>40%,"E","U")))))
| (In English!) This would mean if the value is above 80% it's an A,
| otherwise if it's not above 80%, but it's above 70% it's a B, etc. So
| this would be the percentage a student got on their exam and their
| grade.
|
| It's always important that the total number of open brackets is the
| same as closed brackets in a formula. If you know how to use brackets
| effectively, you shouldn't need to worry.
|
| =IF(A1=1,IF(A2=1,IF(A3=1,"Match",""),""),"")
| This is another example, the formula checks if all 3 cells are equal to
| 1, if they are it's a "Match" otherwise the cell is left empty. Notice
| how the closed bracket is put in place to show that the function ends.
|
| All functions within a formula start with ( and end with ) this is
| crucial to remember if you deal with functions inside other functions,
| like this one.
| =IF(A1=70,LEFT(A2,4),RIGHT(A2,1))
| There's 2 closed brackets at the end of this equation, the first marks
| the end of the RIGHT function, the second is the end of the IF
| statement, starting the formula.
|
| For a detailed run through of every function in excel, select an empty
| cell, go to Insert at the top, and select Function, or Insert
| Function.
|
| This should help you understand a little more about equations and
| functions, i'll let you try to work out those you posted, if you're
| still struggling, i'll post some more tips.
|
|
| --
| Faz
| ------------------------------------------------------------------------
| Faz's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=27830
| View this thread:
http://www.excelforum.com/showthread.php?threadid=473723
|