Skip to content

Commit a505e66

Browse files
authored
remove duplicate sample (#5453)
1 parent 15ecaeb commit a505e66

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

docs/excel/excel-add-ins-dot-functions.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add reference methods to cell values
33
description: Learn how to add reference methods to cell values.
4-
ms.date: 08/28/2025
4+
ms.date: 11/04/2025
55
ms.localizationpriority: medium
66
---
77

@@ -134,24 +134,7 @@ function addValue(math, x): number[][] {
134134
}
135135
```
136136

137-
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.
138-
139-
The following code sample shows the implementation of the `Contoso.addValue` function.
140-
141-
```typescript
142-
/**
143-
* Adds x to the calling object.
144-
* @customfunction
145-
* @excludeFromAutoComplete
146-
* @param {any} math The math object (calling object).
147-
* @param {number} x The value to add.
148-
* @return {number[][]} Sum.
149-
*/
150-
function addValue(math, x): number[][] {
151-
const result: number = math.properties["value"].basicValue + x;
152-
return [[result]];
153-
}
154-
```
137+
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.
155138

156139
Note the following about the previous code sample.
157140

0 commit comments

Comments
 (0)