Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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 |
#2
![]() |
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filling excel entire row/column instead of single cell from an array | Excel Worksheet Functions | |||
Putting Excel formatting and/or formulas into CSV file | Excel Discussion (Misc queries) | |||
Can Excel recognize when data is entered and apply formulas? | Excel Worksheet Functions | |||
How do I hide formulas in Excel cells? | Excel Discussion (Misc queries) | |||
Excel Formulas | Excel Discussion (Misc queries) |