Display 580 When a Cell Contains X in Excel
Question details
Automatically display 580 in one column when the corresponding cell in another column contains X, and leave the result blank otherwise.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet uses values in column F to determine what appears in column E on the same row.
- Observed behavior
- The desired result is 580 for matching cells and a blank-looking result for all other entries.
Identify the source and result columns and the first row to evaluate. Decide whether the source cell must equal X exactly or can contain X as part of longer text.
Return 580 when the cell equals X
Use this formula when the source cell should contain only X, not longer text.
Select cell E114, type =IF(F114="X",580,"") and press Enter.
Select E114 and drag the fill handle at its lower-right corner down column E. Each copied formula checks the corresponding cell in column F.

Return 580 when X appears anywhere in the cell
Use this option if X may be part of longer text, such as X1 or Box.
Display 580 for matching cells in WPS Spreadsheets
Use the same IF formula in WPS Spreadsheets to check column F and show 580 or a blank-looking result in column E.
- 1. Open the workbook: Open WPS Spreadsheets and select Open to choose your Excel workbook.
- 2. Enter the formula: Click E114, enter =IF(F114="X",580,"") and press Enter.
- 3. Apply it to other rows: Drag the fill handle from E114 down column E to check each corresponding cell in column F.
- 4. Save the workbook: Select File > Save or Save As and choose an Excel-compatible format such as XLSX.

Frequently Asked Questions
How do I return 580 only when F114 equals X?
Enter =IF(F114="X",580,"") in E114. The formula returns 580 for X and a blank-looking result for other values.
How can I check for X inside longer text?
Enter =IF(ISNUMBER(SEARCH("X",F114)),580,"") in E114. This also matches lowercase x and values such as X1.
How do I apply the formula to an entire list?
Select the formula cell and drag its lower-right fill handle down the result column. Relative references adjust to check the source cell on each row.
Does the formula result count as a truly empty cell?
No. The formula returns an empty text string when there is no match, so the cell looks blank but still contains a formula.




