R
R
rinokonli2015-06-26 11:09:41
Macros
rinokonli, 2015-06-26 11:09:41

How to go through all the necessary cells and if the conditions are satisfied, make mathematical calculations?

There is such a table, sorted by time.
how to make a script / macro to iterate through the cells and calculate such a difference - and then sum the value.
time spent in the office : this is if a sequence of pairs of values ​​\u200b\u200bis encountered, first "entrance" - then "exit"
and subtract the time corresponding to the entrances or exits between them
time spent outside the office, I calculate this if there is an exit-entry sequence, and the difference between them.
18a3d40c25bb451fadd80007dcfd5fb8.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vov Vov, 2015-06-29
@balamut108

No macros are needed. See examples of the CountIf function. Here is the link, for example, school356spb.ru/index.php/materialy-dlya-ege-i-gia...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question