274,981 views
38 votes
38 votes
In cell E5, enter a formula without using a function that subtracts the start date for

the customer from the current date and divides the result by 365.25, the number
of days in a year, accounting for leap year.

User Michael Chao
by
2.9k points

2 Answers

16 votes
16 votes

A formula that can be entered without using a function that subtracts the start date for the customer from the current date and divides the result by 365.25, is this: = (TODAY() - B5) / 365.25

What is the formula?

This formula subtracts the days between the start date (C2) and the current date (E5) and then divides by a constant 365.25, which is an approximation of the average year length. The Today() function takes the date information for the current date.

Other methods that can be used to get correct values would be nested IF statements, VBA macros, or specialized add-ins.

Complete Question:

A. In cell E5 of a spreadsheet, enter a formula without using a function that subtracts the start date for the customer from the current date and divides the result by 365.25, the number of days in a year, accounting for leap year.

27 votes
27 votes

Answer:


\boxed{((C2-E5))/(365.25)}

Step-by-step explanation:

First, tap on cell E5. Add: = .

Next, tap cell C2. The current date of 11/02/2021, doing this, you would be presented: =C2 . Add: -. Then tap on D5.

The equation in E5: =C2-E5. It should be:
= ((C2-E5))/(365.25). Hover over C2 and tap F4. This renders the entire source.

Lastly, illustrate the input in cell E5 with one decimal place.

User Felipe Lema
by
3.2k points