ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel array formulas (https://www.excelbanter.com/excel-discussion-misc-queries/43746-excel-array-formulas.html)

Les Gordon

Excel array formulas
 
I've "cleverly" written an array formula using a user defined function which
is implemented across several columns.

Now I want to (programmatically) delete some columns in the worksheet
according to certain conditions. Unfortunately I get an error message saying
that I can't change part of an array.

Do I have to seek out these rows, save the array formula (somehow), delete
the array formula, delte the columns, and re-create the array formula? or is
there something simpler?

Array formula is like {=myfunction(A10:j10,A43:j43,b1)}

REgards

Les
--
Les Gordon

Conrad Carlberg

Hi Les,

Yup, the rules that apply to an array formula based on a UDF are the same as
those that apply to an array formula that's based on built-in functions and
formulas. You cannot change part of an array. Arrgh. And your description of
how to recover (saving the formula, etc.) looks to me like the best
approach, assuming that you need to retain the formula, so it can
recalculate. If you don't need to keep it as a formula, you could convert
the formula to values programmatically prior to deleting the columns.

--
C^2
Conrad Carlberg

Excel Sales Forecasting for Dummies, Wiley, 2005


"Les Gordon" wrote in message
...
I've "cleverly" written an array formula using a user defined function

which
is implemented across several columns.

Now I want to (programmatically) delete some columns in the worksheet
according to certain conditions. Unfortunately I get an error message

saying
that I can't change part of an array.

Do I have to seek out these rows, save the array formula (somehow), delete
the array formula, delte the columns, and re-create the array formula? or

is
there something simpler?

Array formula is like {=myfunction(A10:j10,A43:j43,b1)}

REgards

Les
--
Les Gordon





All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com