Forum Discussion
Greg_Hullender
Dec 14, 2025Copper Contributor
TOCOL/TOROW Treat Thunks as Errors
I just reported a bug to Excel in which the TOROW and TOCOL functions, if asked to delete errors, will also delete valid thunks. ISERROR returns FALSE when presented with a thunk, so, arguably, TOCOL...
PeterBartholomew1
Dec 14, 2025Silver Contributor
I had somewhat resigned myself to the idea that I couldn't use the TOCOL error criterion to filter errors without also taking out the #CALC! errors that represent functions. I now think I was wrong to settle for that! As you have observed, ISERROR does not treat functions as errors so why should TOCOL?
In a functional programming environment in which functions are first class citizens it is simply wrong that TOCOL should treat them as errors.