By: Shamima Sultana

In reply to Hammy.

Hello Hammy,

Thank you for your comment! You can achieve this calculation in Excel with accuracy even if your numbers include decimals.

Ensure Numbers Are in Numeric Format: First, check that your values in cells E6, C6, and D6 are formatted as numbers and not text. If they’re treated as text, Excel won’t calculate the formula correctly.

To convert text to numbers, select the cells, go to the Data tab >> select Text to Columns.
Alternatively, use =VALUE(cell) in another cell to convert text to a number.

Input Your Formula: Use the formula you mentioned:
=(E6-C6)/(C6-D6)

Excel will handle the decimal points automatically as long as the values are in numeric format.

Adjust Decimal Display: If you want to control how many decimal places are shown, select the result cell, go to the Home tab, and use the Increase/Decrease Decimal buttons in the Number section.

Let me know if you face any issues or need further clarification!

Regards
ExcelDemy