#1   Report Post  
MLD
 
Posts: n/a
Default dates in year

I have a formula set to count the number of taxable daysin a year based on
the closing date of the transaction. The problem is, I have used the
=DATE360 function which is 5 (or 6) days off and is causing a problem.

My current function reads:
=IF(C2=0,0,(DAYS360(D2,E2))) C2=Jan 1 of current year; D2 = Jan 1 minus 1
; E2=.ref to closing date cell

The number of days is then mul;tiplied by the daily tax raite of the
property which is figured by annual tax/365.
See the problem? Has anyone run into this issue? Do you have a workaround
formula?


Thanks so much!
-Monica


  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 29 Sep 2005 15:38:17 -0400, "MLD" wrote:

I have a formula set to count the number of taxable daysin a year based on
the closing date of the transaction. The problem is, I have used the
=DATE360 function which is 5 (or 6) days off and is causing a problem.

My current function reads:
=IF(C2=0,0,(DAYS360(D2,E2))) C2=Jan 1 of current year; D2 = Jan 1 minus 1
; E2=.ref to closing date cell

The number of days is then mul;tiplied by the daily tax raite of the
property which is figured by annual tax/365.
See the problem? Has anyone run into this issue? Do you have a workaround
formula?


Thanks so much!
-Monica


If every day in the year is a "taxable day", then, to count the number of days,
inclusive, from the beginning of the year to the closing date in E2, you can
use:

=E2-DATE(YEAR(TODAY()),1,0)

Format the result as General (or as Number with 0 decimal places)


--ron
  #3   Report Post  
MLD
 
Posts: n/a
Default

Thanks!! Works like a charm (even thogh I can't quite get the logic of it.)


"Ron Rosenfeld" wrote in message
...
On Thu, 29 Sep 2005 15:38:17 -0400, "MLD" wrote:

I have a formula set to count the number of taxable daysin a year based

on
the closing date of the transaction. The problem is, I have used the
=DATE360 function which is 5 (or 6) days off and is causing a problem.

My current function reads:
=IF(C2=0,0,(DAYS360(D2,E2))) C2=Jan 1 of current year; D2 = Jan 1 minus

1
; E2=.ref to closing date cell

The number of days is then mul;tiplied by the daily tax raite of the
property which is figured by annual tax/365.
See the problem? Has anyone run into this issue? Do you have a

workaround
formula?


Thanks so much!
-Monica


If every day in the year is a "taxable day", then, to count the number of

days,
inclusive, from the beginning of the year to the closing date in E2, you

can
use:

=E2-DATE(YEAR(TODAY()),1,0)

Format the result as General (or as Number with 0 decimal places)


--ron



  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 29 Sep 2005 17:06:05 -0400, "MLD" wrote:

Thanks!! Works like a charm (even thogh I can't quite get the logic of it.)


The logic of it is that Excel stores dates as serial numbers with day 1 being
referenced to 1/1/1900 or 1904 depending on the date system in use on your
machine.

So to get the number of days between dates, you can merely subtract one from
the other.

The portion of the formula "DATE(YEAR(TODAY()),1,0)" generates the date as
follows: DATE(year, month, day)

YEAR(TODAY()) is this year.
1 -- January
0 -- the 0'th day of january becomes the last day of the previous month --
necessary since you want an inclusive count.

Glad it works for you.

Thanks for the feedback.
--ron
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
2 digit year in dates return 19xx not 20xx moranbo Excel Discussion (Misc queries) 1 September 7th 05 01:44 AM
How can I use day of year dates in Excel? jbradford721 Excel Discussion (Misc queries) 2 August 18th 05 02:56 PM
sort dates by day then month, not by year. Lisa Peterson Excel Worksheet Functions 5 July 12th 05 10:38 AM
sort dates by month and day not year dianne Excel Worksheet Functions 2 March 8th 05 08:16 PM
How sort dates just by day/month and NOT year if all 3 given in ce smags Excel Worksheet Functions 1 January 25th 05 03:45 AM


All times are GMT +1. The time now is 03:32 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"