使用开始日期范围计算NETWORKDAYS

时间:2018-04-13 16:56:32

标签: excel excel-formula sumifs

有没有办法使用"开始日期"的范围来计算NETWORKDAYS;和结束日期的单一日期?

我试图将此作为SUMIFS标准纳入以下公式:

void Start() { string nonce = DateTime.Now.ToString("HHmmss"); string myParam = "command=returnBalances&nonce=" + nonce; const string WEBSERVICE_URL = "https://poloniex.com/tradingApi"; try { var webRequest = System.Net.WebRequest.Create(WEBSERVICE_URL); if (webRequest != null) { webRequest.Method = "POST"; webRequest.Timeout = 12000; webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.Headers.Add("Key", _apiKey); webRequest.Headers.Add("Sign", genHMAC(myParam)); byte[] dataStream = Encoding.UTF8.GetBytes($"command=returnBalances&nonce={nonce.ToString()}"); webRequest.ContentLength = dataStream.Length; Stream newStream = webRequest.GetRequestStream(); newStream.Write(dataStream, 0, dataStream.Length); newStream.Close(); using (System.IO.Stream s = webRequest.GetResponse().GetResponseStream()) { using (System.IO.StreamReader sr = new System.IO.StreamReader(s)) { var jsonResponse = sr.ReadToEnd(); OutputText.text = jsonResponse.ToString(); } } } } catch (Exception ex) { OutputText.text = ex.ToString(); } }

  • G栏:项目开始日期,
  • H栏:项目结束日期,
  • 第一栏:项目持续时间(以月计),
  • J栏:每月的小时数

M3:U3 = 3/1/18 - 12/1/18

目标是将公式应用于M4:U4。

0 个答案:

没有答案