Function Problems

Display 580 When a Cell Contains X in Excel

Bushra ParveenBushra Parveen Dec 2, 2026 868 views

Question details

Automatically display 580 in one column when the corresponding cell in another column contains X, and leave the result blank otherwise.

Display 580 When a Cell Contains X in Excel
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.
Before you start

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.

Solution 1Recommended

Return 580 when the cell equals X

Use this formula when the source cell should contain only X, not longer text.

1
Enter the formula

Select cell E114, type =IF(F114="X",580,"") and press Enter.

2
Copy it to other rows

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 the cell equals X
Exact match: The comparison is not case-sensitive, so both X and x return 580. Entries such as X1 or a cell with extra spaces do not match.
WPS Office spreadsheet solution

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. 1. Open the workbook: Open WPS Spreadsheets and select Open to choose your Excel workbook.
  2. 2. Enter the formula: Click E114, enter =IF(F114="X",580,"") and press Enter.
  3. 3. Apply it to other rows: Drag the fill handle from E114 down column E to check each corresponding cell in column F.
  4. 4. Save the workbook: Select File > Save or Save As and choose an Excel-compatible format such as XLSX.
Automatically return 580 when a corresponding cell equals XOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and fill handlesWork with spreadsheets in a free Office suite
microsoft office alternative - wps office

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.