简体   繁体   中英

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?

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))

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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