Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pulling My Hair Out!
 
Posts: n/a
Default How do I use the IF function to calculate date

I am creating a statement form. I need it to take the date of each item on
the statement and calculate whether that item is less than 30 days, 31-60
days pastdue, 61-90 days past due, and finally over 90 days past due.
Depending on the out come of the value, I would like the amount of each item
placed into the appropriate box (current, 1-30 days past due, etc...)
Wow, upon reading the above, I think I've managed to confuse my self!
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=IF(AND(TODAY()-A1<31,TODAY()A1),"Less than or equal to
30",IF(AND(TODAY()-A130,TODAY()-A1<61),"Between 31 and 60
days",IF(AND(TODAY()-A160,TODAY()-A1<91),"Between 61 and 90
days",IF(TODAY()-A190,"more than 90 past","Not past"))))

or better

=IF(TODAY()A1,VLOOKUP(TODAY()-A1,{0,"Less than or equal to 30";31,"Between
31 and 60";61,"Between 61 and 90";91,"Over 90"},2),"Not past due")

Regards,

Peo Sjoblom

"Pulling My Hair Out!" wrote:

I am creating a statement form. I need it to take the date of each item on
the statement and calculate whether that item is less than 30 days, 31-60
days pastdue, 61-90 days past due, and finally over 90 days past due.
Depending on the out come of the value, I would like the amount of each item
placed into the appropriate box (current, 1-30 days past due, etc...)
Wow, upon reading the above, I think I've managed to confuse my self!

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
Date updates from worksheet to chart & changes date to a date series! Help!! Jayjg Charts and Charting in Excel 2 January 22nd 05 04:00 PM
Calculate age as of a given date Joe S. Excel Discussion (Misc queries) 1 December 9th 04 10:02 PM
Calculate age as of a date certain Joe S. Excel Discussion (Misc queries) 1 December 9th 04 10:02 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 07:01 PM
How do I run an Excel function only once? Viekn Excel Discussion (Misc queries) 2 November 30th 04 09:01 PM


All times are GMT +1. The time now is 04:12 PM.

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

About Us

"It's about Microsoft Excel"