Hi Maarten,
_Formula troubleshooting_:
A TRUE or FALSE result result means the formula is comparing two values and returning the result of the comparison.
In the formula you came up with, the only comparison operator is the ">" sign, so the formula must be comparing what's in front of that to what follows it.
=JAAR(A1)-JAAR(A3)-(31*MAAND(A3)+DAG(A3)) > (31*MAAND(A1)+DAG(A1))
What the formula should be doing is two subtractions. First subtracting the second term ( JAAR(A3) ) from the first ( JAAR(A1) ), then subtracting the result of the comparison in the rest of the formula.
Here's your revision and my original (with the IF() statement removed). I've added some spaces to yours to make the terms line up a bit better.
=JAAR(A1)-JAAR(A3) - (31
MAAND(A3)DAG(A3))>(31MAAND(A1)DAG(A1))
=YEAR(A$1)-YEAR(A3)-((31
MONTH(A3)DAY(A3))>(31MONTH(ADAY(A3))>(31MONTH(A$1))DAY(A$1)))
The only difference (other than the $, discussed below) is a pair of brackets around everything following the second "-" sign. Those brackets limit the comparison to what's between them, and make the result of that comparison (which will be either 1—TRUE— or 0—FALSE) the amount to be subtracted from the previous part of the formula.
The function of the "$" sign in the formula is to fix the cell reference to a specific column or row.
In this case, I've assumed you'll have a list of birthdates (in A3, A4, A5, etc.) and a single date (in A1) on which you want to calculate all of the ages.
After you've entered the formula into B3, you can copy it into the rest of the cells in column B using Fill Down (Select the cells to contain the formula, including B3, then go Calculate > Fill Down).
Without the $, the A3 cell references in the initial formula will be changed to reference a cell in the same relative position with respect to the formula's 'new' location.
Example: in B3: =A3
Fill down to B5: =A5
The $, placed before the row reference fixes that reference to the initial row.
Example: in B3: =A$1
Fill down to B5: =A$1
Placed in front of the column reference ($A1) the $ fixes the column when a formula is filled right.
Placed in front of both column and row references ($A$1), the cell reference remains fixed when the formula is filled down or right.
Regards,
Barry