Age Date Between Two Dates to Return Value as 30, 60, 90 day

S

smartin

Nath said:
Hi,

How do I calculated between two dates to return the value as 30, 60, 90 day.

One way:

=CEILING(day2 - day1,30)

Substitute day2 and day1 with references to your actual dates.
 
N

Nath

Sorry, that did not work. I'm doing something work. What I'm looking for is:
Cell
A1 = 6/8/07
A2 = 12/11/08

I need it to return the value between the two date as 30,60,90,180,360, and
1yr+
 
S

smartin

Ah, that's a shade different than your original requirements, no?

Create a little table in an out-of-the-way place. I will use X1:Y6 to
demonstrate:

X Y
--------------
1E+31 1yr+
360 360
180 180
90 90
60 60
30 30

Now given your dates in A1 and A2 this will return the age bucket:

=INDEX(X1:Y6,MATCH(A2-A1,X1:X6,-1),2)
 
J

Jacob Skaria

Another way..

=LOOKUP(A2-A1,{0,30,60,90,180,360,361},{0,30,60,90,180,360,"1 yr+"})

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top