# Spreadsheet best practice

## Best practices for setting up your spreadsheet

When creating your Squirrel project, it’s natural to focus on the canvas and visual design—after all, you want your project to look great! However, it's equally important to keep the underlying spreadsheet well-organized. A cluttered, chaotic spreadsheet can quickly become a nightmare to troubleshoot and even harder to hand off to someone else.

To ensure your project remains easy to manage and understand, here are some key tips for maintaining a clean and efficient spreadsheet:

### Using Color Fill on Cells

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2Fji4qpBkLWRXwkOEYcTYb%2FDatainsertionImage.png?alt=media&#x26;token=cc4a44d3-6cfe-418d-83ec-bf6bef576ec8" alt="" width="415"><figcaption></figcaption></figure>

It is highly recommend to apply a fill color to cells that involve interactivity or data insertion. These cells often appear ‘empty’ in the spreadsheet, making it easy to accidentally add data that could later be overwritten by new insertions. A simple color fill helps prevent this confusion and keeps your spreadsheet organized.

### Create a Key

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FtD2JlByQE2DGbANhxD56%2FKey.png?alt=media&#x26;token=340028a8-8938-4677-a841-6777e0c583f7" alt="" width="375"><figcaption></figcaption></figure>

If there’s a chance you’ll need to hand off your project to someone else, creating a key is essential. A well-designed key will explain the meaning behind each color fill and highlight how to identify formulas. This will undoubtedly save the next user a lot of time and frustration, making the spreadsheet much easier to navigate.

### Organize the Spreadsheet by Tabs

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2F059zPpUtterbO9GZ0foI%2FTabs.png?alt=media&#x26;token=178662ce-6f89-4312-9ee4-d0e6f286b21c" alt="" width="375"><figcaption></figcaption></figure>

It’s tempting to quickly place information in the first available spot in your spreadsheet, but this can lead to a messy mix of component styling, controls, and data. Before you know it, you might struggle to determine if your label-based menu controls are affecting your total cost values.\
To avoid this, organise your Squirrel project by creating separate tabs for styling, functions/controls, and data. If your project involves a large amount of data, feel free to add more tabs as needed. This simple structure keeps everything clear and easy to manage.

#### Styling Tab

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FT6Mi7FUBUKWa2pmbPVKj%2FStyling%20Tab.png?alt=media&#x26;token=2a7a30bd-44ac-4d59-971d-de75e1323fc5" alt="" width="375"><figcaption></figcaption></figure>

The styling tab is just what it sounds like—a dedicated space to store all your color settings for components. By binding all your colors to this single location, any changes you make can be updated easily in one place. This not only simplifies updates but also ensures consistency across your project.\
Additionally, having all your colors centralized makes it easier to use them in formulas.

#### Control Tab

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FZKdARFvecV9JKQeF11bv%2FControl%20Base.png?alt=media&#x26;token=1558b422-d08a-425a-9c64-a26cb6ca7d4d" alt="" width="563"><figcaption></figcaption></figure>

The control tab is where all the interactivity in your project resides. Any element that responds to changes on the canvas should be placed here, keeping your project’s interactive components organized.

#### Data Tab

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FYzRdQNFUaCRghu2d40MU%2FdataBase.png?alt=media&#x26;token=b24c4213-0029-4cfc-a8a6-7205ab3e1992" alt="" width="563"><figcaption></figcaption></figure>

The data tab is where all the information you want to display in your Squirrel project is stored. If you have a large amount of data, consider organizing it across multiple data tabs to maintain clarity and manageability.

### Grouping and Labeling Data Inside the Squirrel File

<div align="center"><figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2F7aFjCsWYzth40vDBt2MS%2FGroupingSquirrelData%201.png?alt=media&#x26;token=5582808f-c17b-48c3-b6b5-36cf6750a036" alt="" width="287"><figcaption></figcaption></figure></div>

Lastly, group and label your data within your Squirrel spreadsheet for better organization. For instance, if you have a label-based menu in your control section, keep all related labels and interactivity together, clearly identifying it as the label-based menu control.\
To enhance clarity, add a title or description above or beside each section of data. Grouping can be accomplished by leaving a row or column gap around the data, but using a border around each section makes it more visually prominent and easier to navigate.
