简体   繁体   English

我可以用 SUM 连续计算“小时”,但在单元格中显示名称/字符吗?

[英]Can i count “hours” in a row with SUM, but show Names/Characters in the cell?

I would like to let Google Sheets count "hours" in a row together, BUT we use "Characters" instead of Numbers when we update the Document.我想让谷歌表格一起计算“小时”,但是我们在更新文档时使用“字符”而不是数字。

Can we do a secondary Table and calculate everything together and then output the total number in the original table?我们可以做一个辅助表并一起计算所有内容,然后 output 原始表中的总数吗?

I've made a picture for a easier understanding:为了便于理解,我做了一张图片:

https://i.imgur.com/IxXjIWL.png

try:尝试:

=ARRAYFORMULA(SUM(IFNA(HLOOKUP(A1:Q1; 
 {{"F" ; 8,5 }\ 
  {"U" ; 7,7 }\ 
  {"D" ; 2   }\ 
  {"N1"; 11,3}}; 2; 0))))

在此处输入图像描述


for multiple rows use:对于多行使用:

=ARRAYFORMULA(MMULT(IFNA(HLOOKUP(A1:Q3; 
 {{"F" ; 8,5 }\ 
  {"U" ; 7,7 }\ 
  {"D" ; 2   }\ 
  {"N1"; 11,3}}; 2; 0))*1; ROW(INDIRECT("A1:A"&COLUMNS(A1:Q)))^0))

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM