How to Use the DAYS Function in WPS on Windows

Last updated:July 20, 2026

This how-to guide includes 4 operation topics, all available directly in WPS Spreadsheet; choose a topic from the index and follow the steps to enter the formula and check the result.

How-to Index

How-to Guide

1. Enter the DAYS function

Entry point: Formula bar or target cell

  1. Open WPS Spreadsheet and select the cell where you want to show the result.
  2. Type = in the selected cell or in the formula bar.
  3. Continue typing DAYS(.
  4. Check whether function guidance appears.

Success Criteria

  • Interface result: The cell enters formula input mode.
  • Next action available: You can continue entering function arguments.

Tips While Using

  • Common mistake: If you do not start with =, the content may be treated as plain text.

2. Review syntax guidance and fill in arguments

Entry point: Function guidance shown after typing =DAYS(

  1. After typing =DAYS(, review the syntax guidance shown in WPS Spreadsheet.
  2. Confirm the required arguments from the guidance.
  3. Enter the end date first and the start date second.
  4. Separate the arguments with a comma.

Success Criteria

  • Interface result: The formula contains a complete argument structure.
  • Next action available: You can press Enter to run the calculation.

Tips While Using

  • Common mistake: If the argument order is reversed, the result may not match your expectation.
  • Environment note: Referenced cells should contain valid date values for date calculation.

3. Calculate the date difference in a cell

Entry point: Result cell

  1. Finish entering the DAYS formula arguments.
  2. Check that the parentheses and separators are complete.
  3. Press Enter to confirm the formula.
  4. Review the returned result in the cell.

Success Criteria

  • Interface result: The cell shows the calculated date difference.
  • Next action available: You can copy the formula or continue editing other cells.

Tips While Using

  • Common mistake: Missing a closing parenthesis or separator can cause a formula error.

4. Check errors and recalculate

Entry point: Result cell and formula bar

  1. If the result looks incorrect, first review the formula syntax.
  2. Confirm that the argument types and count match the function requirements.
  3. Check whether referenced cells contain text-formatted dates or circular references.
  4. If needed, press F9 to recalculate.

Success Criteria

  • Interface result: After correction, the result displays normally or updates as expected.
  • Next action available: You can continue editing, copying, or saving the worksheet.

Tips While Using

  • Common mistake: Using text-formatted numbers or invalid dates as arguments can cause unexpected results.