财政年度的剩余日子 [英] Remaining days in financial year

查看:79
本文介绍了财政年度的剩余日子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力计算一个财政年度剩下的天数,似乎无法让这个工作得以快速查看吗?状态日期设置为月末,因此在此之后的任何日期,我想要接收最多31分钟。

I am trying to work out the number of days left in a financial year and can't seem to get this working could you have a quick look? The Status date is set to the end of the month so any days after that up to 31 dec I want to pick up.

int(ProjDateDiff([Status Date],IIf([完成]< dateserial(年([状态日期]),12,31),[完成],日期序列(年([状态日期]),12,31)),[项目日历])/ 60/8)

int(ProjDateDiff([Status Date],IIf([Finish]<dateserial(year([Status Date]),12,31),[Finish],dateserial(year([Status Date]),12,31)),[Project Calendar])/60/8)

这似乎显示更多的天数,即2013年10月16日开始,结束日期为23/05/2014,状态日期为30/04/2013应显示最多140天,但这个计算显示160

This seems to be showing a higher number of days ie a start of 16/10/2013 and end date of 23/05/2014 and a status date of 30/04/2013 should show up 140 days but this calculation is showing 160

我如何确定MS Project中使用的日历(我们还有项目服务器)

How do I work out what calender is used in MS Project (we have project server also)

推荐答案

您好,

要使您的公式独立于项目日历,以及日历选项是什么,您可以使用:

To make your formula independent of which is the project calendar, and what are the calendar options, you can use this:

int(ProjDateDiff([Status Date]; IIf([Finish]< dateserial(year([Status Date]); 12; 31); [Finish]; dateserial(year( [状态日期]); 12; 31)))/ [每天的分钟数])

int(ProjDateDiff([Status Date];IIf([Finish]<dateserial(year([Status Date]);12;31);[Finish];dateserial(year([Status Date]);12;31)))/[Minutes Per Day])

当您不在功能中使用日历时,它将自动引用项目日历

When you do not use the Calendar in the function, it will automatically refer to the project calendar

每天使用分钟而不是480使其独立于每日小时选项。

Using Minutes per day instead of 480 makes it independent of the hours per day option.

问候,


这篇关于财政年度的剩余日子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆