How to Use the DVAR Function in WPS on Windows

Last updated:July 13, 2026

This how-to guide includes 3 operation topics, and all 3 are available without membership; choose a topic from the index and follow the entry path and steps to complete it.

How-to Index

How-to Guide

1. Insert DVAR through the Insert Function dialog

Entry path: Formula tab → Insert Function

  1. Select the cell where you want to place the formula.
  2. Click the fx button in the formula bar, or click Insert Function on the Formula tab.
  3. Search for DVAR in the dialog box.
  4. Select the function and click OK.
  5. Enter the required parameters in the function arguments dialog box.
  6. Click OK to finish inserting the function.

Success Criteria

  • The selected cell now contains a DVAR function.
  • The function arguments dialog can be confirmed and returns a result.
  • The worksheet remains editable and can be saved.

Tips While Using

  • You can search the function name in uppercase or lowercase, then confirm the correct result from the list.
  • Make sure the database range, field, and criteria range references are correct before confirming the formula.

2. Type the DVAR formula directly in a cell

Entry path: Cell → Formula bar

  1. Select the target cell.
  2. Type =DVAR(...) directly in the cell or in the formula bar.
  3. Press Enter to confirm.
  4. If you need to revise the formula, select the cell again and edit the parameters in the formula bar.

Success Criteria

  • The cell displays a calculation result.
  • When the cell is selected, the full DVAR formula is visible in the formula bar.
  • The formula can be copied, filled, or edited further.

Tips While Using

  • Use the correct argument separator for your current formula environment.
  • When copying the formula to other cells, check whether relative and absolute references behave as expected.

3. Check DVAR syntax and parameter guidance

Entry path: Formula tab → Insert Function

  1. Click Insert Function on the Formula tab.
  2. Type DVAR in the search box.
  3. Select the function to review its syntax and parameter structure.
  4. Open the related help entry if you need more detail before completing the formula.

Success Criteria

  • You can see the DVAR function name and parameter structure.
  • You can identify what each parameter should reference.
  • You can return to the worksheet and continue formula entry.

Tips While Using

  • If the result is not what you expect, first check whether the field name matches the database header exactly.
  • Keeping the criteria range in a separate area can make reuse and troubleshooting easier.