Om jag har en lista över tidsceller nu vill jag räkna antalet celler mellan två givna tider som följande skärmdump visas, hur skulle jag snabbt kunna räkna antalet celler mellan två specifika tider i Excel?
För att få antalet celler mellan två gånger kan följande formel hjälpa dig, gör så här:
Ange denna formel i en tom cell där du vill hitta resultatet:
=SUMPRODUCT(($A$1:$A$16>=C1)*($A$1:$A$16< D1)), E1, till exempel, dra sedan påfyllningshandtaget ner till cellerna för att få resultatet, se skärmdump:
Anmärkningar: I ovanstående formel, A1: A16 är den tidslista du vill använda, C1 och D1 är de två specifika tiderna där du vill räkna cellerna mellan dem.
Uppgradera dina Excel-färdigheter med Kutools för Excel och upplev effektivitet som aldrig förr. Kutools för Excel erbjuder över 300 avancerade funktioner för att öka produktiviteten och spara tid. Klicka här för att få den funktion du behöver mest...
So action d1 happens at a time in A1 with a value in e1 by user f1
I would like to calculate all that is happened between b1 and c1 and if it is in range and the action name is pl and the user number is 1024 count sum of e1.
Another way if user 1024 and action done pl count how sum of e1 between range of time
Certainly, I will use the same formula for each hour
This comment was minimized by the moderator on the site
How do it make this work if the time is negative?
Warehouse Carrier
Dispatch to RC Dispatch to Invoiced Depart to Dispatched Dispatch to Gate
########### ############### 0:54 1:41
This comment was minimized by the moderator on the site
Hello, Rick,
Sorry, I can't get your point, why there are negative times in your worksheet, could you give your problem more detailed? Or you can insert the attachment or screenshot here.
If you want to show the negatice times in Excel, you can view this article: How To Display / Show Negative Time Properly In Excel?