# Editing cells

Premium Table allows you to edit the contents of a cell and apply calculations. These are visual-level updates and will not impact the source dataset.

### 1. Overwriting values

To overwrite an existing value, simply double-click on the cell and enter the new value. You can enter scaled values (250m, 5.6b, etc.) or reference other cell values.

{% hint style="info" %}
Another way to enable the formula bar is by selecting a cell and clicking the **Edit Cell** button in the Insert ribbon.&#x20;
{% endhint %}

Double-click on a cell as shown in the image. A formula bar is enabled below the toolbar. Type in a value and click Enter. Note that Premium Table allows entry of scaled values (e.g., 45.3m instead of 45,300,000).

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Fhzy9Cv6CEovqsbosMhfj%2FUntitled%20Project.gif?alt=media&#x26;token=3fda05ae-f535-423e-9e39-c24dc8f41b0a" alt=""><figcaption><p>Overwriting cell values</p></figcaption></figure>

The value gets updated and the manual update can be identified by the pencil icon in the cell. The total row is also updated to include the value entered.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FtrJ3dbrvhd1eVet1uGNb%2Fimage.png?alt=media&#x26;token=f01acf69-f3a3-449b-bff8-2d7986c56058" alt=""><figcaption><p>Edited cells can be identified from the pencil icon</p></figcaption></figure>

You can even reference other cells and apply formulas to them using the cell editor. You can define simple mathematical operations such as A +/- B, etc.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F4iBVBWksJiFQscamvPlM%2Fimage.png?alt=media&#x26;token=dbf65426-bbeb-490f-8397-97106fdb8ccf" alt=""><figcaption><p>Referencing cell values in formulas</p></figcaption></figure>

{% hint style="info" %}

* You can also edit cells using the 'Edit cell' icon in the toolbar. You can access it in the Insert tab > Cell section.&#x20;
* Premium Table allows you to edit AC, PY, PL, FC, and OM measures. You can edit dates and text measures as well.
  {% endhint %}

### 2. Apply formulas

&#x20; You can use the wide range of formulas and functions available in Premium Table while editing a cell. In the below example, we are using the 'Average' function. As you start typing, you can see the functions that match the entered text as a list. Click on 'Average'.

2.1. Click on the arrow icon to see more information, such as the arguments and examples.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F4oVTETrprIg3xYQWMJbr%2Fimage.png?alt=media&#x26;token=83cc1fcb-0043-4a22-a862-8b97be77456b" alt=""><figcaption><p>View syntax and examples for supported formulas</p></figcaption></figure>

2.2. You can click on any cell, and it gets automatically populated as shown below.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2Ff8xujzm4gDj970rnnFXb%2Fimage.png?alt=media&#x26;token=11e6c9fc-144f-45cd-96cb-bbe24c5122cb" alt=""><figcaption><p>Referencing a cell in a formula</p></figcaption></figure>

2.3. We can reference multiple cells in a formula. Click the <img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2FpTlCUaEyJpbAkCJRRtFM%2Fimage.png?alt=media&#x26;token=1a890c95-cd28-484d-90ce-d2548737a633" alt="" data-size="line">button or press Enter to apply the formula.

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F1b9cq8l3cXLTqLlswtWd%2Fimage.png?alt=media&#x26;token=a8e06594-67ea-4e45-82b3-9f02c72ca677" alt=""><figcaption><p>Referencing multiple cells</p></figcaption></figure>

### 3. Updating multiple cells

You can also override the data in multiple cells with the same value, for instance, set a fixed budget. Select the cells and update the value in any cell; the updated value will be cascaded to all the selected cells.

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/3L5AQDJO4i1uVOxMTQEh/image.png" alt=""><figcaption></figcaption></figure>

### 4. Renaming Row Categories

You can also rename row categories by double-clicking on them.&#x20;

<figure><img src="https://2428652681-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsB9HAei8v4FfKkH9M4gw%2Fuploads%2F71fp2tmqeW5JG5KE1sgh%2FUntitled%20Project.gif?alt=media&#x26;token=f540b5f3-f7b1-4d57-a838-9ee44b99edc8" alt=""><figcaption><p>Renaming row categories</p></figcaption></figure>
