# Populate simple table

1. Select the shape by `name` you want to modify. See [here](https://docs.powerpointgeneratorapi.com/knowledge-base/finding-shape-names) to find shape names.
2. Use the `data_cells` object to populate a table shape. It is a 2-dimensions array of cell values.&#x20;
3. Each cell value can be a simple string or a text object.
4. You can provide more or fewer rows or columns than the template shape

Reference: [table](https://docs.powerpointgeneratorapi.com/json-template-syntax/shapes/table "mention")

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1LAZ0SnGwRBkn5aU2VCO0anUyATxXAM-E) | [output.pptx](https://drive.google.com/uc?export=download\&id=1-LtSqPiUpAKFrSLOb-FNeRaezNCtYWI1)

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2F2O3qb7fzNdBVwgiDa1DW%2Ftemplate.png?alt=media&#x26;token=8d182fde-2e1f-4522-b9d9-5ec3ed188ca4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2F7gKjWHuvVuE49qc1rOce%2Foutput.png?alt=media&#x26;token=0b972f7d-01cd-4f7e-8d33-95f2d28f8df6" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
  "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "shapes": [
          {
            "name": "Table 1",
            "data_cells": [
              [
                "Jan",
                "Feb",
                "Mar",
                "Apr",
                "May",
                "Jun"
              ],
              [
                "45",
                "65",
                "23",
                "63",
                "74",
                "69" 
              ],
              [
                "1",
                "98",
                "6",
                "45",
                "41",
                "60"
              ]
            ]
          }
        ]
      }
    ]
  }
}
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}
