Artigo: 291047 - Última revisão: segunda-feira, 25 de Setembro de 2006 - Revisão: 5.0 How to convert text to numbers in Excel 2002 and in Excel 2003
Nesta páginaSumário This step-by-step article describes how to convert cells that contain text to cells that contain numbers. convert cells that contain text to cells that contain numbers. Ao importar um ficheiro criado noutro programa (como o dBASE ou o Lotus 1-2-3) ou transferido a partir de um mainframe, o Microsoft Excel poderá reconhecer alguns números como texto. Isto determina que funções como a SOMA e a MÉDIA ignorem os valores destas células. Estas cadeias de texto podem conter realmente texto, para além dos números que pretenda converter. Converting Text to NumbersTo convert text to numbers in a worksheet, use any of the methods described later in this article (methods 1 through 7).Nota: cada um destes métodos pressupõe que já alterou a formatação de números existentes em céluas para Geral. Para tal, siga estes passos:
Method 1: Use the Error ButtonIf the cells in which numbers are displayed as text contain an error indicator in the upper-left corner, follow these steps:
Method 2: Retype the Values in the CellsTo retype the values in the cells, follow these steps:
Method 3: Edit Directly in the CellTo edit directly in the cells, follow these steps:
Method 4: Use the Paste Special CommandTo use the Paste Special command, follow these steps:
Method 5: Remove Hidden Characters and SpacesThis method works best if the data is arranged in a single column or row. Este método utiliza as funções COMPACTAR e LIMPARB para remover espaços extra e caracteres não imprimíveis que possam ter sido importados com o ficheiro. O exemplo seguinte pressupõe que os dados estão localizados na coluna A e que começam na linha 1 ($A$1). Para utilizar este exemplo, siga estes passos:
Note This method may not remove all nonprinting whitespace characters. For example, the whitespace character Chr$(160) will not be removed. Method 6: Use a Visual Basic for Applications ProcedureMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Crie uma macro do Visual Basic for Applications para rescrever os números na célula ou intervalo de células seleccionado. Para tal, siga estes passos:
Method 7: Use the Text to Columns CommandThis method works best if the data is arranged in a single column. O exemplo seguinte pressupõe que os dados estão localizados na coluna A e que começam na linha 1 ($A$1). Para utilizar este exemplo, siga estes passos:
Referências
For more information about cell formatting, click Microsoft Excel Help on the Help menu, type format cells in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. A Microsoft não oferece nenhuma garantia, expressa ou implícita, relativa ao desempenho ou à fiabilidade destes produtos. | Outros Recursos Outros Sites de Suporte
ComunidadesObtenha Ajuda AgoraTraduções de Artigos
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Voltar ao topo