Mensagens

A mostrar mensagens com a etiqueta Função RESTO

CALCULAR TEMPO ENTRE LOTES DE PRODUÇÃO (Calculating Time Between Production Batches)

Imagem
Este problema foi apresentado por um leitor e seguidor (Obrigado Maxwell). Trata-se de calcular o atraso entre lotes de produção, tendo em consideração um valor tempo definido entre lotes, e realçando os valores tempo entre lotes superiores ao valor pré-definido (neste exemplo - 02:35) A fórmula em C6:  =B6+$E$3 A fórmula em E6:  =SE(D6>C6;RESTO(D6-C6;1);RESTO(C6-D6;1)) This problem was presented by a reader and follower (Thanks Maxwell) This is to calculate the delay between production batches , considering a set time value between lots, and highlighting the time values ​​between batches greater than the default value (in this example - 02:35) Formula in C6:  =B6+$E$3 Formula in E6:  =IF(D6>C6,MOD(D6-C6,1),MOD(C6-D6,1)) Como sempre, estou disponível para sugestões de melhoria e para ajudar nas questões que eventualmente estejam omissas, através dos comentários no blog ou por mail  blog.excelcoisas@gmail.c...

OUTRO EXEMPLO DE CÁLCULO DE HORAS NEGATIVAS (Another Example for Calculating Negative Hours)

Imagem
Outra questão que me foi colocada recentemente relacionava-se com o cálculo de atrasos numa escala de produção. Neste caso específico, o atraso implicava que o resultado fosse negativo. E o Excel não reconhece directamente valores negativos quando se trata cálculo com unidades de tempo. Another question I was asked recently was related to the calculation of delays on a production scale. In this particular case, the delay meant that the result was negative. And Excel does not directly recognize negative values ​​when it comes to calculation units of time. A solução apresentada foi a seguinte: My solution was as follows: Fórmula da Célula E6 e seguintes : = SE(D6>C6;RESTO(D6-C6;1);RESTO(C6-D6;1)) Formula in E6 and below: = IF(D6>C6,MOD(D6-C6,1);MOD(C6-D6,1)) As células a vermelho realçam os casos em que o resultado é negativo e, por isso, existe um atraso  na escala. Para que essas células apareçam com fundo vermelho, recorre-se à formatação condicional: The red ...