Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions docs/excel/excel-add-ins-dot-functions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Add reference methods to cell values
description: Learn how to add reference methods to cell values.
ms.date: 08/28/2025
ms.date: 11/04/2025
ms.localizationpriority: medium
---

Expand Down Expand Up @@ -134,24 +134,7 @@ function addValue(math, x): number[][] {
}
```

You can use any argument name that conforms to the Excel syntax rules in [Names in formulas](https://support.microsoft.com/office/names-in-formulas-fc2935f9-115d-4bef-a370-3aa8bb4c91f1). Because this is a math entity, the calling object argument is named `math`. The argument name can be used in the calculation. In the previous code sample, it retrieves the `math.[value]` property to perform the calculation.

The following code sample shows the implementation of the `Contoso.addValue` function.

```typescript
/**
* Adds x to the calling object.
* @customfunction
* @excludeFromAutoComplete
* @param {any} math The math object (calling object).
* @param {number} x The value to add.
* @return {number[][]} Sum.
*/
function addValue(math, x): number[][] {
const result: number = math.properties["value"].basicValue + x;
return [[result]];
}
```
You can use any argument name that conforms to the Excel syntax rules in [Names in formulas](https://support.microsoft.com/office/names-in-formulas-fc2935f9-115d-4bef-a370-3aa8bb4c91f1). Because this is a math entity, the calling object argument is named `math`. The argument name can be used in the calculation.

Note the following about the previous code sample.

Expand Down