简体   繁体   中英

Count Cell Values based on Time Range

I want to get the total "Contact" made between the times on column G and H using the Start(Col D2) and End(Col E12). How to accomplish this?

根据时间计算单元格值

Use a sumifs to do this

=SUMIFS($B:$B,$D:$D,">="&G1,$E:$E,"<="&H1)

Edit: Use the following

First sumifs checks to see if a contact has started in the specified range, the second sumifs checks to see if a contact has ended in the specified range

=SUMIFS($B:$B,$D:$D,">="&G1,$D:$D,"<="&H1)+SUMIFS($B:$B,$E:$E,">="&G1,$E:$E,"<="&H1)

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