当数字为文本形式时的处理
<p>当数字为文本形式时的处理 <script src="http://wps.udesk.cn/css/help.js">// <!]></script> </p> <p>数字存储在单元格中有两种存储方式,一种是以数字形式存储,一种是以文本方式存储。</p> <p>WPS表格在对包含数字形式和文本形式的数字进行排序时,会区分数字的类型,进行排序。</p> <table border="0" width="100%" cellspacing="4" cellpadding="4"> <tbody> <tr><th class="th1">数据</th><th class="th2">数据类型</th></tr> <tr valign="top"> <td class="bottomLine" align="right"> <div align="right">2</div> </td> <td class="bottomLine">数字</td> </tr> <tr valign="top"> <td class="bottomLine" align="right"> <div align="right">7</div> </td> <td class="bottomLine">数字</td> </tr> <tr valign="top"> <td class="bottomLine">11</td> <td class="bottomLine">按文本存储的数字</td> </tr> <tr valign="top"> <td class="bottomLine">5</td> <td class="bottomLine">按文本存储的数字</td> </tr> </tbody> </table> <p><span id="mydiv1" class="charr2"></span> 如何判断数字是以什么形式存储的 </p> <div id="sample1"> <p>您可以使用函数 IsText 来测试数字是否是以文本存储方式存储。</p> <p>您可以使用函数 IsNumber 来测试数字是否是以数字存储方式存储。</p> 例如:=IsText(A1) 用来判断单元格 A1 值的存储格式是否为“文本”。<br>如果是则返回“True”,否则返回“False”</div> <p><span id="mydiv2" class="charr2"></span> 如何转换数字的存储形式 </p> <div id="sample2"> <ul> <li> <p>如果您想把 以文本形式存储的数字 转换为 以数字形式存储的数字。您可以进行以下操作:</p> <ol> <li>选中单元格。</li> <li>在“开始”选项卡上,选择“格式”下拉列表中的“文本转换成数值”。</li> </ol> <p> 或者,您可以使用 Value函数转换您的数据。</p> </li> <li> <p>如果您想把以数字形式存储的数字转换为以文本形式存储的数字,那么您需要先把单元格的格式设置为“文本”,然后重新键入数据。<br>或者,您可以使用 Text函数转换您的数据。</p> </li> </ul> </div> <p> </p>
頁:
[1]