Boa tarde,
Possuo uma planilha em excel com dados históricos, contendo as seguintes colunas. Na coluna "Recorrência" preciso criar uma contagem em dias, quantas vezes o associado aparece, considerando a coluna DATA/HORA GERAÇÃO.
Se o associado aparecer mais que uma vez no mesmo dia, considerar contar apenas uma vez,
Há um detalhe, se o associado aparece exemplo 01/04/25 e depois só em 01/08/25 a contagem precisa ser reiniciada. A ideia é contar quantos dias seguidos ele aparece, considerando pular os finais de semana e feriados.
Outro exemplo:
O associado apareceu entre os dias 24/11 e 28/11, a recorrência será 5, na segunda-feira 01/12, continua em 6, 7..., se a segunda feira fosse feriado, a contagem ia continuar no dia 02/12, em 6,7...
| DATA MOVIMENTO | PA AVALISTA | GERENTE | CPF/CNPJ ASSOCIADO | NOME DEVEDOR | Nº CONTRATO | VALOR SALDO DEVEDOR | CPF/CNPJ AVALISTA | NOME AVALISTA | Nº CONTA CORRENTE | VALOR PARCELA | SALDO DISPONÍVEL | ORIGEM DO SALDO | DATA/HORA GERAÇÃO | PERÍODO DIA | REGIONAL | RECORRÊNCIA |
Can you provide the sample data in a CSV or excel file? Then we can build a working example.
Translation:
"Good afternoon,
I have an Excel spreadsheet with historical data, containing the following columns. In the "Recurrence" column, I need to create a count in days of how many times the member appears, considering the DATE/TIME GENERATED column.
If the member appears more than once on the same day, count it only once.
There is one detail: if the member appears, for example, on 04/01/25 and then only on 08/01/25, the count needs to be reset. The idea is to count how many consecutive days they appear, skipping weekends and holidays.
Another example:
The member appeared between 11/24 and 11/28, the recurrence will be 5. On Monday 12/01, it continues as 6, 7..., if that Monday were a holiday, the count would continue on 12/02 as 6, 7..."
Boa tarde,
Segue arquivo exemplo.
O objetivo é:
Se um mesmo CPF/CNPJ, nº contrato e nº conta corrente ou origem do saldo aparecem diariamente, soma-se +1 à contagem do dia anterior. Caso esses critérios não sejam atendido por mais de 3 dias seguidos, a contagem recomeça.
3 dias seguidos, pois precisa ignorar contar sábados e domingos, além, de poder ocorrer feriados em segundas-feiras. Também é aceitável até 4 dias sem aparecer e não recomeçar a contagem, a partir de 5 dias essa contagem precisa recomeçar.
@Daniel_Gotardo
Which date do you want considered: [DATA MOVIMENTO] or [DATA/HORA GERACAO] ?
Also, if the weekends and Holiday were able to be removed, then your requirement of the 3/4 days before reset no longer need to be considered right? If those were not there, then does the count reset after any missed day? I assume yes based on your first message.
I should be able to build out a workflow to show this. I'll use American Holidays, but you can swap those out for the Holidays that are relevant to you in your region.
Let me know in the meantime the answer to my question about the data field to use. -Jay
Bom dia,
Pode considerar [DATA/HORA GERAÇÃO].
Perfeita leitura referente a questão da diferença de dias perdido, é isso mesmo.