Hide Table of Contents

Using Functions and Formulas

You can enter standard Microsoft™ Excel functions directly into the rules window.


Common functions used in DriveWorksXpress.

AND Returns TRUE if all its arguments are TRUE; returns FALSE if any argument is FALSE
IF AND Returns one value if all AND arguments are TRUE and another value if any AND argument is FALSE
IF OR Returns one value if any OR arguments are TRUE and another value if any OR arguments are FALSE
IF Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE
LEFT Returns the first character or characters in a text string
OR Returns TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE
RIGHT Returns the last character or characters in a text string
& Joins two rules or joins two text strings into one text string
ROUNDUP Rounds a number up, away from zero
ROUNDDOWN Rounds a number down, toward zero

For a complete list of functions, refer to worksheet functions in Microsoft Excel Help.

Nesting Formulas

You can use a formula as an argument in another formula. This is called nesting. For example, the following formula uses a nested formula to compare the result with an Input Drop Down selection. The corresponding Configuration value is reported:

Y= IF( DropDownSelection = "DropDownValueA" , "ConfigBValue" , IF( DropDownSelection = "DropDownValueB" , "ConfigBValue" , IF( DropDownSelection = "DropDownValueC" , "ConfigCValue" , "ConfigDValue" ) ) )

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   Using Functions and Formulas
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: SOLIDWORKS 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.