PC Review


Reply
Thread Tools Rate Thread

How to determine which columns are used in formulas?

 
 
Maury Markowitz
Guest
Posts: n/a
 
      8th Sep 2008
This is going to be a bit strange, so bear with me...

I have a report that consists mostly of formulas pointing to a large
"block" of data pasted into the sheet starting at column BA. The data
in question comes from our SQL based accounting engine via a stored
proc. I call the proc, use GetRows, rotate the array (is there a built
in function for this?) and the paste it in starting at BA5.

Now over in cols A to Z is the "user area" where the user types in
whatever formula they want, mixing and matching the accounting data as
they see fit.

The problem is that there are about 140 columns of data in the
accounting dump. This makes the spreadsheets rather large, about 10
MB. What I would like to do is find out which columns are actually
being referred to from the formulas, and delete any that aren't being
used.

So, is there a way to do this?

Maury

 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      8th Sep 2008
It is clearly possible to loop over the user area, find each equation, find
the precedents of the equations and map them into the data area, and then
delete un-used columns.

HOWEVER

I don't recommend doing this:

1. If the user wants to change equations, necessary data may have already
been deleted

2. The process will have to be repeated each time the data is refreshed.

3. Configuration management will be more difficult since two copies of the
data will need to be maintained.

I suggest using linking formulas to an external workbook. The user workbook
can be small and the data can be more easily controlled.
--
Gary''s Student - gsnu2007k


"Maury Markowitz" wrote:

> This is going to be a bit strange, so bear with me...
>
> I have a report that consists mostly of formulas pointing to a large
> "block" of data pasted into the sheet starting at column BA. The data
> in question comes from our SQL based accounting engine via a stored
> proc. I call the proc, use GetRows, rotate the array (is there a built
> in function for this?) and the paste it in starting at BA5.
>
> Now over in cols A to Z is the "user area" where the user types in
> whatever formula they want, mixing and matching the accounting data as
> they see fit.
>
> The problem is that there are about 140 columns of data in the
> accounting dump. This makes the spreadsheets rather large, about 10
> MB. What I would like to do is find out which columns are actually
> being referred to from the formulas, and delete any that aren't being
> used.
>
> So, is there a way to do this?
>
> Maury
>
>

 
Reply With Quote
 
Maury Markowitz
Guest
Posts: n/a
 
      8th Sep 2008
On Sep 8, 10:46*am, Gary''s Student
<GarysStud...@discussions.microsoft.com> wrote:
> It is clearly possible to loop over the user area, find each equation, find
> the precedents of the equations and map them into the data area, and then
> delete un-used columns.


So how does one "find the precedents"?

> I don't recommend doing this:


I might consider the linked-spreadsheet idea, but I have found in the
past that the slightest network hick makes the links stop working and
random errors start appearing in dialogs. You also start running into
all sorts of problems with locking behavior, which is never a good
thing in Excel.

Maury
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine Which Columns Are Hidden in VBA nospamkam@wowway.com Microsoft Access 1 7th Mar 2008 08:46 PM
Determine Which Columns Are Hidden with VBA Keith Microsoft Excel Discussion 2 7th Mar 2008 06:59 PM
Determine columns used =?Utf-8?B?SmFuZSBXZWU=?= Microsoft Excel New Users 3 8th Nov 2005 04:13 AM
Determine Valid Sample Size from a Population - Any UDFs or Formulas? DataFreakFromUtah Microsoft Excel Programming 3 13th Sep 2004 06:19 PM
Determine which columns have filter on Fred Smith Microsoft Excel Programming 1 15th Mar 2004 02:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:48 AM.