R
Randy
I have a formula of sort that is suppose to count the number of days between
two dates. I have that part down I think. I need this to happen only when the
beginning date is a day other than the first day of a month.
In other words if the date is 3/1/06 I need the formula to put in a zero
“0â€â€¦if the date is anything other than the 1st of a month then it should
calculate the number of days between the two dates.
Here is what I have so far…The calculation part seems to work but entering a
zero if the date is the 1st day of a month is not working.
=IIf((DatePart("d",[lease begin date]="1"),"0"),Sum((DatePart("d",[lease end
date]-[lease begin date]-1,0))))
Any assistance will be greatly appreciated. Thank you for your time.
two dates. I have that part down I think. I need this to happen only when the
beginning date is a day other than the first day of a month.
In other words if the date is 3/1/06 I need the formula to put in a zero
“0â€â€¦if the date is anything other than the 1st of a month then it should
calculate the number of days between the two dates.
Here is what I have so far…The calculation part seems to work but entering a
zero if the date is the 1st day of a month is not working.
=IIf((DatePart("d",[lease begin date]="1"),"0"),Sum((DatePart("d",[lease end
date]-[lease begin date]-1,0))))
Any assistance will be greatly appreciated. Thank you for your time.