如何计算某个月的数字或条目? [英] How do I count the number or entries in a certain month?

查看:82
本文介绍了如何计算某个月的数字或条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个每六个月收费一次的计费数据库。我的一位客户对每个月的第三个项目收取特殊费用。目前,我正在使用Excel使用数组公式来执行此操作,但我不确定如何在Access中执行此操作。如果它有帮助,这里是我在Excel中使用的公式:


{= IF(SUM((月($ A $ 8:$ A $ 20)=月(A8))*(年($ A $ 8:$ A $ 20)=年(A8))* 1)> 2,$ A $ 5,$ B $ 5)}


A2:A20是我正在分析的日期。 A5是第三项的价格,B5是正常价格。我会尝试获取一个zip文件来上传我的Excel文件,但是目前我的压缩软件还没有工作,所以在我能做之前我必须得到IT的帮助。

I''m designing a billing database that I bill every six months. One of my customers have a special charge for all items past the third one in each month. Currently, I''m using Excel to do this using an array formula, but I''m not sure how to do this in Access. If it helps at all, here is the formula that I''m using in Excel:

{=IF(SUM((MONTH($A$8:$A$20)=MONTH(A8))*(YEAR($A$8: $A$20)=YEAR(A8))*1)>2,$A$5,$B$5)}

A2:A20 is where the dates are that I''m analyzing. A5 is the price for the third item and B5 is the normal price. I''ll try to get a zip file to upload of my Excel file, but currently my compression software isn''t working so I''ll have to get help from IT before I can do that.

推荐答案

A


8:


A


这篇关于如何计算某个月的数字或条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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