To calculate the whole age from the date of birth in Excel, you can use the YEAR and NOW functions. As an example, if the date of birth is added in cell A7, then to calculate the total age from that date of birth, use the following formula:
=(YEAR(NOW())-YEAR(A7))
Make sure the cell where the date of birth is present displays a number (or formatted as a number or General), otherwise, the output won't come.