#1   Report Post  
Les Gordon
 
Posts: n/a
Default 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
  #2   Report Post  
Conrad Carlberg
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling excel entire row/column instead of single cell from an array shitij Excel Worksheet Functions 3 July 13th 05 07:44 AM
Putting Excel formatting and/or formulas into CSV file Frank D. Nicodem, Jr. Excel Discussion (Misc queries) 1 July 11th 05 10:18 PM
Can Excel recognize when data is entered and apply formulas? cwool4512 Excel Worksheet Functions 2 July 7th 05 07:58 PM
How do I hide formulas in Excel cells? Rita Excel Discussion (Misc queries) 2 February 15th 05 08:55 PM
Excel Formulas albebach Excel Discussion (Misc queries) 1 February 2nd 05 09:52 PM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"