Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=IF(COUNT(B2:B8)=7,AVERAGE(B2:B8),"N/A")Computed by a real spreadsheet engine on the sample data below.
| Date | Sales |
| 2023-01-01 | 100 |
| 2023-01-02 | 150 |
| 2023-01-03 | 200 |
| 2023-01-04 | 250 |
| 2023-01-05 | 300 |
| 2023-01-06 | 350 |
| 2023-01-07 | 400 |
=IF(COUNT(B2:B8)=7,AVERAGE(B2:B8),"N/A")→250
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
The formula will return "N/A" if there are fewer than 7 data points in the range.
Yes, adjust the range in the COUNT and AVERAGE functions to the desired number of days.
No, the formula requires numerical data to calculate an average.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: