---
schema_version: "1"
id: 7299330ebe3e98f1968410876822a26605a4d4e766935132699f8320cb6c3490
title: / (Divide)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_divide.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_divide.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fa32d6c1ce47b7f70afccc82ad599189cc24e7276793aa30b0e3e95226f11c50
description: Divides its values.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# / (Divide)

Divides its values.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in:</td></tr></tbody></table>

## Use

`value1 / value2` and replace each value with merge fields, expressions, or other numeric values.

![Revenue Amount](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Revenue Amount

`AnnualRevenue/ NumberOfEmployees`

This formula calculates the revenue amount per employee using a currency field.

```
IF(NumberOfOpportunities > 0, 
  NumberOfWonOpportunities / NumberOfOpportunities, null)
```

![% Won Opportunities Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

% Won Opportunities Example

`WON:SUM / RowCount` calculates the percent of Won opportunities using a record count representing the number of all opportunities in your report. This formula is a number data type that returns a positive or negative integer.

![% Difference between Cost and Sales Price Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

% Difference between Cost and Sales Price Example

`(TOTAL_PRICE:SUM - QUANTITY:SUM * Product2.Cost__c:SUM) / (QUANTITY:SUM * Product2.Cost__c:SUM)` calculates the average percent difference between what a product costs and its selling price on a product-by-product level. `Product2.Cost__c:SUM` is a custom currency field named Cost on products, which includes the cost of each product. This formula is a percent data type that returns a positive or negative integer. For best results, use this formula on a summary Opportunities with Products report that is summarized by Product Name and includes summary totals for Quantity, Total Price, and Cost.