本文介绍了计算天数的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在A1 =``2012年5月20日''中有B1 =``否'',我想在C1中有一个公式来计算日期之间的天数,因此:



I have in A1 = ''20-05-2012'' B1 = ''NO'' and I want in C1 a formula to calculate the number of days between to dates, so:

string today = DateTime.Now;

if(B1='NO')
{
   //Here I want that C1 = '3'
   //and tomorow will C1 = '4' 
   //because the number of days between 20-05-2012 and 23-05-2012 = 3
   //and tomorrow the number of days between 20-05-2012 and 24-05-2012 = 4
}


如何在excel中执行此操作?
我希望你能理解我的问题...

问候,
KZ


How I do this in excel?
I hope you understand my question...

Regards,
KZ

推荐答案




这篇关于计算天数的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 21:38
查看更多