Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Age Date Between Two Dates to Return Value as 30, 60, 90 day

Hi,

How do I calculated between two dates to return the value as 30, 60, 90 day.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Age Date Between Two Dates to Return Value as 30, 60, 90 day

Nath wrote:
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.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Age Date Between Two Dates to Return Value as 30, 60, 90 day

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+

"smartin" wrote:

Nath wrote:
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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Age Date Between Two Dates to Return Value as 30, 60, 90 day

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)


Nath wrote:
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+

"smartin" wrote:

Nath wrote:
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.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Age Date Between Two Dates to Return Value as 30, 60, 90 day

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
---------------
Jacob Skaria


"Nath" wrote:

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+

"smartin" wrote:

Nath wrote:
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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
return date from range of dates with if statement Joe Excel Worksheet Functions 3 March 3rd 09 11:24 AM
return TRUE if a date falls between two dates christine b Excel Worksheet Functions 8 June 20th 07 10:19 PM
Return Date using two dates and a word pblenis Excel Discussion (Misc queries) 4 May 22nd 07 06:46 PM
return a date from range, date is between dates in two other cells NN Excel Discussion (Misc queries) 1 September 28th 06 10:05 PM
Return the latest date from a list of dates davidp Excel Worksheet Functions 8 March 18th 05 12:48 AM


All times are GMT +1. The time now is 07:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"