Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 digit year in dates return 19xx not 20xx | Excel Discussion (Misc queries) | |||
How can I use day of year dates in Excel? | Excel Discussion (Misc queries) | |||
sort dates by day then month, not by year. | Excel Worksheet Functions | |||
sort dates by month and day not year | Excel Worksheet Functions | |||
How sort dates just by day/month and NOT year if all 3 given in ce | Excel Worksheet Functions |