# VALUE

The *VALUE* function converts a text string that represents a number into a numeric value. This function is commonly used to convert extracted or formatted text into numbers for calculations.

#### Syntax

```javascript
VALUE(value)
```

#### Arguments

* `value`: The text string that contains a number.

#### Return value

Returns the numeric value represented by the text string.

#### Example

```javascript
VALUE(MID(Product Code, 9, 6))
```

In this example, the VALUE function converts the extracted portion of the *Product Code* field into a numeric value. For example, `Product0101001` returns `101001`.

<figure><img src="/files/2Vmw57O914PRh3Xqz9ez" alt=""><figcaption></figcaption></figure>

#### Excel equivalent

[VALUE](https://support.microsoft.com/en-us/office/value-function-257d0108-07dc-437d-ae1c-bc2d3953d8c2)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/text-formatting-functions/value.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
