Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default How to determine which columns are used in formulas?

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How to determine which columns are used in formulas?

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default How to determine which columns are used in formulas?

On Sep 8, 10:46*am, Gary''s Student
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
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
determine max number of columns in a spreadsheet [email protected] Excel Programming 1 July 18th 06 02:55 PM
Determine if column is within range of columns Michael Beckinsale Excel Programming 4 January 18th 06 11:26 AM
Determine columns used Jane Wee New Users to Excel 3 November 8th 05 04:13 AM
Determine Valid Sample Size from a Population - Any UDFs or Formulas? DataFreakFromUtah Excel Programming 0 September 13th 04 06:19 PM
Adding two columns to determine number of days to pay Katherine[_4_] Excel Programming 3 August 18th 04 08:18 PM


All times are GMT +1. The time now is 06:44 PM.

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

About Us

"It's about Microsoft Excel"