Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1009

Empty arrays not supported error

$
0
0

I have a workbook of sheets, one for each year, and need to get the average of all months that passed in the year of that sheet. The sheets are named by year and I named the formula: MONTHS.

=LET(year,VALUE(MID(CELL("filename"),SEARCH("]",CELL("filename"))+1,31)),IF(YEAR(TODAY())=year,MONTH(TODAY())-1,IF(year>YEAR(TODAY()),0,12)))

And use it to get an average :

It works most of the time, but when I do some things in other cells or sheets, it returns a #CALC error that empty arrays are not supported. When I recalculate the sheet it fixes itself, but it's very annoying to have to do that all the time. Is there any way to prevent this from happening?


Viewing all articles
Browse latest Browse all 1009

Trending Articles