Copy a Cell When a Date Is More Than 180 Days Later in WPS Spreadsheets
Question details
Automatically display one cell's value in another cell only when a date is more than 180 days after a reference date.

- 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.
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.
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.
Click cell I4, where you want the value from C4 to appear.
In I4, enter =IF(B4>$H$1+180,C4,"") and press Enter.
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.

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. Open your spreadsheet: Open WPS Spreadsheets and select the workbook containing your dates and values.
- 2. Check the reference date: Enter or verify the reference date in H1 and the row date in B4.
- 3. Enter the formula: Click I4, type =IF(B4>$H$1+180,C4,"") and press Enter.
- 4. Fill other rows: Drag the fill handle from I4 down to apply the formula to additional rows.

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.




