
To fix "text dates" in this format, you can try In this example, the numbers are dates, and Excel does not recognize them as real dates.Īs shown in the screenshot below, these dates are formatted with slashes, in the date format: m/d/yy Here is another way to try to fix problem numbers. MsgBox "Could not change text to numbers" MsgBox "Could not find Constants in selection" To fix "text" numbers, select the cells, and click your macro button. Then, add that macro to your Quick Access Toolbar, or to one of the tabs on the Excel Ribbon. Store the following macro in a workbook that is always open, suchĪs your Personal Workbook. If you frequently convert text to numbers, you can use a macro, like the one shown below. The Number Format commands on the Ribbon's Home tab. Tip: After the numbers have been fixed, you can apply formatting, by using
Right-click on one of the selected cells, and click Paste Special. Select the cells that contain the "text" numbers.
Right-click a blank cell, and click Copy. To fix numbers that are seen as text, follow these NOTE: If you need to do this frequently, you can use a macro to automate the task. The video transcript is further down the page. Watch this short video tutorial, to see the steps, and the written Of the values in cells C3:C6 are recognized as numbers.Ĭonvert Text to Numbers with Paste Specialįor some "text" numbers, you can fix the problem with Paste COUNT: However, the COUNT function in cell F5 show a result of zero. The formula result is 4, which shows that there are 4 entries in that range of cells, C3:C6. This function counts any cells that are not empty. COUNTA: At the right, in cell F4, the COUNTA function is used in a formula. SUM: In cell C7, the total for the addition formula is zero, instead of showing the correct answer. In the screen shot above, the values in column C look like numbers,īut they don't add up. Show a correct total, in a SUM formula, as you can see in the spreadsheet below.Īlso, you can't change the number formatting - it always stays the same, no matter how you try to format cells. In Excel, the valuesĬould look like numbers, but they don't act like numbers, and don't Web site, Excel may treat the numbers as text. If you copy data from another program, or from a text file or a Get the Sample File Look Like Numbers, But Don't Add Up Convert Currency With Different Separators