Function Problems

Copy a Cell When a Date Is More Than 180 Days Later in WPS Spreadsheets

Rana GarciaRana Garcia Nov 18, 2026 870 views

Question details

Automatically display one cell's value in another cell only when a date is more than 180 days after a reference date.

Copy a Cell When a Date Is More Than 180 Days Later in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Compare each row's date with a fixed reference date and return the value from that row when the condition is met.
Observed behavior
The result cell should display the source value when the date exceeds the reference date by more than 180 days; otherwise, it should appear blank.
Before you start

Confirm that B4 and H1 contain valid spreadsheet dates, not text. In this example, B4 is the date to check, H1 is the reference date, C4 contains the value to return, and I4 is the result cell.

Solution 1Recommended

Use an IF Formula to Return the Cell Value After 180 Days

Use this formula when each row's date should be compared with the same reference date in H1.

1
Select the result cell

Click cell I4, where you want the value from C4 to appear.

2
Enter the IF formula

In I4, enter =IF(B4>$H$1+180,C4,"") and press Enter.

3
Apply the formula to other rows

Select I4 and drag its fill handle down the result column. The references to B4 and C4 adjust for each row, while $H$1 stays fixed.

Use an IF Formula to Return the Cell Value After 180 Days
The date must be more than 180 days later: A date exactly 180 days after H1 does not meet the condition. The formula returns an empty string when the condition is false.
WPS Spreadsheets

Compare Dates and Return Cell Values in WPS Spreadsheets

Use an IF formula in WPS Spreadsheets to compare a row's date with a fixed reference date and display the corresponding value only when the difference exceeds 180 days.

  1. 1. Open your spreadsheet: Open WPS Spreadsheets and select the workbook containing your dates and values.
  2. 2. Check the reference date: Enter or verify the reference date in H1 and the row date in B4.
  3. 3. Enter the formula: Click I4, type =IF(B4>$H$1+180,C4,"") and press Enter.
  4. 4. Fill other rows: Drag the fill handle from I4 down to apply the formula to additional rows.
Automatically return values based on a 180-day date comparisonKeep the reference date fixed when filling the formula downOpen and edit Microsoft Excel XLSX and XLS files
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula return a value when the difference is exactly 180 days?

No. The > operator requires B4 to be later than H1 plus 180 days. To include exactly 180 days, use =IF(B4>=$H$1+180,C4,"").

Why are there dollar signs around H1?

The $H$1 reference keeps both the column and row fixed. When you drag the formula down from I4, every row continues to use H1 as the reference date.

What if the dates are stored as text?

The comparison may not work as expected. Check B4 and H1 and convert or re-enter their contents as valid dates before using the formula.

Can I use this formula in Microsoft Excel?

Yes. Enter =IF(B4>$H$1+180,C4,"") in the result cell in Excel, then drag the fill handle down to apply it to other rows.