Function Problems

How to Fill an Excel Column Based on a Stock Level in WPS Office

Steven ParkerSteven Parker Nov 13, 2026 869 views

Question details

Use an IF formula in WPS Office Spreadsheets to return N in the reorder column when the stock-level column contains Plenty, and return Y for other stock levels.

How to Fill an Excel Column Based on a Stock Level in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Managing inventory stock levels in a spreadsheet and automating a reorder column based on stock status.
Observed behavior
The reorder column should display N for Plenty and Y for any other stock level, with optional handling for blank stock-level cells.
Before you start

Open your inventory workbook in WPS Office Spreadsheets and confirm the stock-level values are in column B and the reorder formula will start in D5. Adjust the cell references if your sheet uses a different layout.

Solution 1Recommended

Use =IF($B5="Plenty","N","Y") in the Reorder Column

Use this solution when every non-Plenty stock level should show Y and Plenty should show N.

The formula checks the stock-level value in column B for the current row. The absolute column reference $B keeps the formula tied to column B, while the row number changes as you fill down.

1
Select the reorder cell

Click cell D5, or the first cell where the reorder result should appear in your worksheet.

2
Enter the IF formula

Type =IF($B5="Plenty","N","Y") and press Enter.

3
Fill the formula down

Use the fill handle at the lower-right corner of D5 and drag it down through the remaining inventory rows, or double-click the fill handle to auto-fill.

Use =IF($B5="Plenty","N","Y") in the Reorder Column
Formula returns N for Plenty and Y for other values: When B5 contains Plenty, D5 shows N. For any other non-empty stock level, D5 shows Y.
Direct WPS solution

Create a Stock-Based Reorder Column in WPS Office Spreadsheets

Use WPS Office Spreadsheets to enter the same Excel IF formula and fill a reorder column automatically based on stock levels.

  1. 1. Open WPS Office Spreadsheets: Launch WPS Office and open the Excel workbook that contains your stock-level data.
  2. 2. Locate the reorder column: Click the first cell where the reorder result should appear, such as D5.
  3. 3. Enter the IF formula: Type =IF($B5="Plenty","N","Y") and press Enter.
  4. 4. Fill down for all items: Drag the fill handle from the formula cell down through your inventory list to apply the formula to each row.
Use familiar Excel formula syntax without learning a new systemFill down with the same fill handle behavior for fast inventory updatesOpen and save .xlsx workbooks with full Microsoft Excel compatibilityFree, lightweight spreadsheet tool with a familiar ribbon interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula use $B5 instead of B5?

The $B absolute column reference keeps the formula looking at column B even if it is copied or filled across columns, while the row number 5 adjusts as the formula is filled down.

How do I leave the reorder cell blank for empty stock levels?

Use =IF($B5="","",IF($B5="Plenty","N","Y")). The outer IF catches empty cells and returns a blank before checking for Plenty.

Can I use this formula if the stock level is in a different column?

Yes. Change $B5 to the actual stock-level column and row, for example $C5 if the stock level is in column C, then fill the formula down.

What should I do if the cell shows the formula text instead of the result?

The cell may be formatted as text. Select the cell, set the number format to General, click in the formula bar, and press Enter to recalculate.

Does this IF formula work the same in WPS Office and Microsoft Excel?

Yes. WPS Office Spreadsheets supports standard Excel IF formula syntax and .xlsx workbooks, so the formula behaves the same in both applications.