Excel Error Codes

Fix Excel #VALUE! Error in a Cost per Square Foot Formula

John WilsonJohn Wilson Nov 14, 2026 869 views

Question details

The user needs to calculate cost per square foot using the values in C9 and F6 without a #VALUE! error.

Fix Excel #VALUE! Error in a Cost per Square Foot Formula
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet divides the cost in C9 by the square footage in F6 using =C9/F6.
Observed behavior
The formula returns #VALUE! when one or both referenced cells contain text, invalid characters, or a formula that returns nonnumeric text.
Before you start

Identify the cells containing the cost and square footage, and check that F6 should be a nonzero number. Select C9 and F6 and inspect their contents in the formula bar.

Solution 1Recommended

Convert C9 and F6 to usable numeric values

Use this method when text, extra characters, or nonnumeric formula results cause the division to fail.

1
Test both cells

In empty cells, enter =ISNUMBER(C9) and =ISNUMBER(F6). A FALSE result identifies a cell whose current value is not numeric.

2
Inspect and clean the values

Select each cell that returned FALSE and check the formula bar. Remove unintended spaces or symbols, or reenter the value as a number. If the cell contains a formula, correct it so it returns a number rather than text.

3
Check the number format

Select C9 or F6 and press Ctrl+1 to open Format Cells. Choose Number or another appropriate numeric format. If a value remains text, reenter it or use an available Convert to Number warning option; changing the format alone does not convert existing text.

4
Recalculate the formula

Confirm that =ISNUMBER(C9) and =ISNUMBER(F6) both return TRUE and that F6 is not zero. Then enter =C9/F6 in the result cell.

Convert C9 and F6 to usable numeric values
Check for division by zero: If F6 is zero or blank, the formula can return #DIV/0! instead. Enter a valid, nonzero square footage in F6.
Calculate in WPS Spreadsheets

Calculate Cost per Square Foot in WPS Spreadsheets

Open your workbook in WPS Spreadsheets, check the cost and square footage cells, and enter the division formula after both values are numeric.

  1. 1. Open the workbook: Open WPS Spreadsheets, choose Open, and select your Excel workbook.
  2. 2. Test the inputs: Enter =ISNUMBER(C9) and =ISNUMBER(F6) in empty cells to identify values that are not numeric.
  3. 3. Correct the cells: Select C9 and F6 and use the formula bar to remove unwanted characters, reenter text values as numbers, or correct formulas that return text. Make sure F6 is not zero.
  4. 4. Calculate and save: Enter =C9/F6 in the result cell, then use File > Save As to save the workbook in XLSX format.
Check numeric inputs with ISNUMBER before dividing.Open and save Microsoft Excel XLSX files.Use familiar spreadsheet formulas and cell editing tools.Use WPS Office for free.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show #VALUE! when the cells look like numbers?

A value may be stored as text or contain extra characters. Enter =ISNUMBER(C9) and =ISNUMBER(F6) in empty cells to check whether Excel recognizes each value as a number.

Will changing the cell format to Number fix the error?

Not always. Select the cell and press Ctrl+1 to check its format, but reenter or convert an existing text value to make it numeric.

What if F6 is zero or blank?

Enter a valid, nonzero square footage in F6. Dividing by zero or a blank cell can produce #DIV/0! rather than #VALUE!.

Can a formula in C9 or F6 cause the error?

Yes. Select the cell and inspect its formula in the formula bar. If it returns text instead of a number, correct the formula or its source values.