# How to calculate the running average over the last x days?

Hello,

I have a spreadsheet with a header row and two columns - date (A:A) and measurement (B:B), see example below. The rows are sorted by date but not always sequential - on some dates there is no measure and hence no corresponding row. I use the formula =SUM(B\$2:B3)/(A3-A\$2) to calculate the running average of measurements in cell C2 and drag the fill handle down to populate the remaining cells in the column. How would I calculate the running average over the last x days?

 Date Measurement Running average Running average over last x days? 2022-09-01 6 2022-09-02 1 =SUM(B\$2:B3)/(A3-A\$2) 2022-09-04 8 =SUM(B\$2:B4)/(A4-A\$2) 2022-09-05 1 =SUM(B\$2:B5)/(A5-A\$2) 2022-09-06 3 =SUM(B\$2:B6)/(A6-A\$2) ...

Zoho SalesIQ Resources
• # Sticky Posts

• ## Format and analyze spreadsheet data with Zoho Sheet's Table

While a spreadsheet helps you compile data for easy analysis, formatting helps make your data more comprehensible. We are happy to announce the release of Table, a crucial tool for improving data formatting in Zoho Sheet. More than a formatting tool,
• ## Introducing Data Bars: Graphically represent changes in data within the cells

Conditional formatting has helped millions of spreadsheet users analyze and highlight their data more efficiently. In addition to the classic rules, color scales, and icon sets available in Zoho Sheet, you can now apply Data Bars, a convenient method
• ## Zia in Zoho Sheet now makes suggestions on conditional formats, picklists, and checkboxes

Zia, Zoho's popular AI assistant, has been helping users succeed across Zoho applications since inception. In Zoho Sheet, Zia helps users efficiently build reports and analyze data with recommendations about data cleaning, charts, and pivot table. Also,
• ## Revamped Print in Zoho Sheet—customized for paper

The latest enhancements to Zoho Sheet's Print settings allows you to print a worksheet or a selected range, with customizations that make the data comprehensible, even on paper.   Customize header and footer Make your spreadsheets meaningful with a relevant header and footer. You can now choose to display the file name, sheet name, current page number, total pages, date, and time as the header and footer in your print view. Besides the predefined elements, you can also give a custom text for header/footer.
• ## Check out the new Checkbox in Zoho Sheet

Checkbox, the simple GUI widget that lets you choose between two mutually exclusive options i.e Yes or No, is now in Zoho Sheet. Having made it across the web, Checkbox is familiar but is still elusive to most spreadsheet software. Special developer ribbons, macros and all other complexities to add a checkbox to a spreadsheet? Not in Zoho Sheet. How to add Checkbox to Zoho Sheet? Adding a Checkbox in Zoho Sheet is simple. Select a cell/range and choose "Checkbox" in "Input Controls" under the Format

Manage your brands on social media

Zoho Pagesense Resources

# Zoho CRM Resources

• CRM Community Learning Series

• Tips

• Functions

• Meetups

• Kbase

• Resources

• Digest

• CRM Marketplace

• MVP Corner

• Word of the Day

Design. Discuss. Deliver.

Create visually engaging stories with Zoho Show.

# Zoho Show Resources

Writer

# Get Started. Write Away!

Writer is a powerful online word processor, designed for collaborative work.

Zoho CRM コンテンツ