Forum Discussion

fredevans's avatar
fredevans
Copper Contributor
May 30, 2023
Solved

excel default type of cell

i am finding that when i enter a formula ( e.g. -a1+a2 ) that i am getting an error that this is the wrong type of data . how do i rectify this error

 

  • fredevans 

    In a newly created workbook, all cells are formatted as in the Normal style.

    If you have created a default template Book.xltx, the style from that template will be used.

    Otherwise, Normal will be as follows:

    Note: the font depends on the setting in File > Options > General.

     

14 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Platinum Contributor
    =A1+A2
    When you enter the formula like this, do you get an error message?
    If yes, which; A photo or file (without sensitive data) would be an advantage.
    • fredevans's avatar
      fredevans
      Copper Contributor
      tes it says wrong data type. it seems that my excel data type always defaults to a char$ so it thinks that i am trying to add letters
      • HansVogelaar's avatar
        HansVogelaar
        MVP

        fredevans 

        If you set the horizontal alignment of A1 and A2 to General, are the values left-aligned or right-aligned? If they are left-aligned, they are text values even if they look like numbers.

        You should be able to correct that by selecting each cell, pressing F2 then Enter.

Resources