Hi guys good morning. I have a difficulty with a formula. In the HR area of the company I work for, we use a form to register for vacancies offered throughout Brazil and in this form we request the CPF (Individual Taxpayer Registration Number - number we use to identify a person in Brazil). This number consists of 11 digits, and you can START with any digit, including 0. I would like to make a simple analysis: to identify if the candidate in question is already in our candidate base. I tried to use COUNTIF to count the amount of that specific value across the column. However, it is only working for CPFs that start with digits from 1 to 9. CPFs that start with 0 are not being identified. I would like some help, please. Thanks.
Olá pessoal, bom dia.
Estou com uma dificuldade em uma fórmula.
Na área de RH da empresa que trabalho utilizamos um formulário para cadastro em vagas ofertadas por todo o Brasil e neste formulário solicitamos o número CPF (Cadastro de Pessoa Física - número que utilizamos para identificar uma pessoa no Brasil). Este número é composto de 11 dígitos, podendo INICIAR com qualquer dígito, inclusive o 0.
Gostaria de fazer uma análise simples: identificar se o candidato em questão já consta em nossa base de candidatos.
Tentei utilizar o COUNTIF para contar a quantidade daquele valor específico em toda a coluna. Porém, só está funcionando para os CPF que começam com dígitos de 1 a 9. Os CPF que começam com 0 não estão sendo identificados.
All values being looked at need to be of the same data type. Numbers that start with 1 - 9 are being stored as numerical values, but those that start with 0 are being stored as text values (so the leading zero won't drop off).
To accommodate this, create another text/number column (that can be hidden after setting up to keep the sheet looking clean) and use
=[ID Number Column Name]@row + ""
This will convert everything to text values. Now you can run your COUNTIFS off of this helper column, and you should be getting the correct results.
All values being looked at need to be of the same data type. Numbers that start with 1 - 9 are being stored as numerical values, but those that start with 0 are being stored as text values (so the leading zero won't drop off).<\/p>
To accommodate this, create another text\/number column (that can be hidden after setting up to keep the sheet looking clean) and use<\/p>
=[ID Number Column Name]@row + ""<\/p>
This will convert everything to text values. Now you can run your COUNTIFS off of this helper column, and you should be getting the correct results.<\/p>","bodyRaw":"[{\"insert\":\"All values being looked at need to be of the same data type. Numbers that start with 1 - 9 are being stored as numerical values, but those that start with 0 are being stored as text values (so the leading zero won't drop off).\\n\\nTo accommodate this, create another text\\\/number column (that can be hidden after setting up to keep the sheet looking clean) and use\\n=[ID Number Column Name]@row + \\\"\\\"\\n\\nThis will convert everything to text values. Now you can run your COUNTIFS off of this helper column, and you should be getting the correct results.\\n\"}]","format":"rich","dateInserted":"2021-01-14T13:53:59+00:00","insertUser":{"userID":45516,"name":"Paul Newcome","title":"","url":"https:\/\/community.smartsheet.com\/profile\/Paul%20Newcome","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/082\/nQPUTVFKKWDJ2.jpg","dateLastActive":"2023-06-10T20:34:55+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"displayOptions":{"showUserLabel":false,"showCompactUserInfo":true,"showDiscussionLink":false,"showPostLink":false,"showCategoryLink":false,"renderFullContent":false,"expandByDefault":false},"url":"https:\/\/community.smartsheet.com\/discussion\/comment\/275225#Comment_275225","embedType":"quote"}">
https://community.smartsheet.com/discussion/comment/275225#Comment_275225
Hi Paul, I'm sorry for the delay in replying. I was unable to solve the problem with the suggested solution. But, I added an auxiliary column with the digit 1 and added it with the CPF column. In this way it was possible to do the necessary counting and identification. Thank you very much for your response and help. Big hug.
If you're just using COUNT, it will automatically exclude blank cells. If you're using COUNTIF, it will only count the values you tell it to (ex. cells that equal "This", which would exclude blank cells).
既然你专门寻找空白单元格, your formula will COUNT how many blank cells there are. This is because you're searching for [Referência do Documento]@row, which is blank.
You can add an IF Statement at the beginning to return Blank if the cell is blank:
=IF(Referência do Documento]@row = ""; "";IF(COUNTIF([Referência do Documento]:[Referência do Documento]; @cell = [Referência do Documento]@row) > 1; "SIM"; "NÃO"))
=IF(Referência do Documento]@row = ""; "";COUNTIF([Referência do Documento]:[Referência do Documento]; @cell = [Referência do Documento]@row))