--- title: "Use Function Painter to Calculate Daily Average" slug: "use-function-painter-to-calculate-daily-average" updated: 2024-01-29T12:12:51Z published: 2024-01-29T12:12:51Z canonical: "kb.dataparc.com/use-function-painter-to-calculate-daily-average" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.dataparc.com/llms.txt > Use this file to discover all available pages before exploring further. # Use Function Painter to Calculate Daily Average **Purpose:** Use the Function Painter to build a daily average calculation. **Task:** Open Excel. Build a 24 hour Time Average of a tag using the Function Painter. Use cell references for the tag, start date, and end date. **Steps:** 1. Open Excel and create a new workbook. 2. Open Tag Browser and drag a tag into Excel (any cell). ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image053_010.jpg) 3. Create two more cells containing the start and end time of the 24 hour interval. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image055_008.jpg) 4. Select an empty cell and then select **Function Painter** from the dataPARC tab. The Function Painter panel will appear. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image057_005.jpg) 5. On the Function Painter panel, click the button to the right of the **Tag** field to use a cell reference as the source of the tag name. Select the cell containing the tag name and click **OK**. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image059_005.png) ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image061_008.jpg) 6. Select the **Statistic** tab. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image063_007.jpg) 7. Click the button to the right of the **Start date** field to use a cell reference for the start date. Select the cell with the start date and click **OK**. Repeat for the end date. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image065_007.jpg) 8. Open the **Statistic** drop-down menu and select **TimeAvg**. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image067_002.png) 9. Click **OK** at the top of the panel to apply the function.. ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image069_001.png) ![](https://cdn.document360.io/59db2ca4-e512-446a-a143-a7c626447812/Images/Documentation/image071_007.jpg)