Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KT KT is offline
external usenet poster
 
Posts: 47
Default Linking Dinamic Cell value into another sheet

Hi,

I am working on a model where I integrate Microsoft Excel and Microsoft
Project. There is a constantly changing resource data in Microsoft project. I
have written a VBA code in Project to export the required data into an Excel
sheet. The exported data does not comprise of a standard column set; in other
words, the number of columns varies according to the necessity. There is a
cell containing the total value at the bottom of the last column. This cell
value should be linked to a cell in another sheet. Since there is
inconsistency in the number of imported columns, the location of this cell
keeps shifting making it difficult to link to another sheet. Can anybody
think of any suggestions? Any help would be really appreciated.

Thanks
KT
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Linking Dinamic Cell value into another sheet

I can think of a few possible solutions: First, if the layout of your
Project data on the sheet meets a few simple criteria you may be able to use
a simple worksheet formula: For example, if the data is in a table of
continuous rows + columns with no blanks (at least in the header row and the
first column) and if there is nothing else on the sheet, you could use the
COUNTA function to count the rows and columns, and this could be the formula
for your total value (use the actual sheet name instead of ProjectDataSheet,
of course)
=OFFSET(ProjectDataSheet!A1,COUNTA(ProjectDataShee t!$A:$A)-1,COUNTA(ProjectDataSheet!$1:$1)-1)
Another solution would rely on modifying the VBA in Project to somehow count
the columns and rows of data (assuming that can be done) and to store those
counts in specified cells in your spreadsheet. Then you can use the same
type of formula I show above to find the cell - just use the stored values
instead of the COUNTA functions.
Finally, if there is an identifying column header, e.g. "TOTAL", and an
identifying row label, e.g. "GRAND TOTAL" that will ALWAYS be there - and
NEVER anywhere else - that identify the last column and last row, you could
use the MATCH function to find those labels and then use the OFFSET to find
the cell, for example:
=OFFSET(ProjectDataSheet!A1,MATCH("GRAND
TOTAL",ProjectDataSheet!$A:$A,0)-1,MATCH("TOTAL",ProjectDataSheet!$1:$1,0)-1)
--
- K Dales


"KT" wrote:

Hi,

I am working on a model where I integrate Microsoft Excel and Microsoft
Project. There is a constantly changing resource data in Microsoft project. I
have written a VBA code in Project to export the required data into an Excel
sheet. The exported data does not comprise of a standard column set; in other
words, the number of columns varies according to the necessity. There is a
cell containing the total value at the bottom of the last column. This cell
value should be linked to a cell in another sheet. Since there is
inconsistency in the number of imported columns, the location of this cell
keeps shifting making it difficult to link to another sheet. Can anybody
think of any suggestions? Any help would be really appreciated.

Thanks
KT

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
Linking cell A in sheet 1 with several cells in sheet 2 o0KelviN0o Excel Worksheet Functions 1 March 28th 07 03:01 AM
Dinamic sheet in web format Marcos Charts and Charting in Excel 0 March 10th 06 06:34 PM
Linking a dinamic cell value from one sheet to another KT Excel Discussion (Misc queries) 1 July 17th 05 12:53 AM
How to dinamic cell that searches for "value1 & value2" in table. armindo Excel Discussion (Misc queries) 3 February 4th 05 10:59 PM
hiperlinks to sheet (dinamic or based on a cell valeu) SpeeD[_2_] Excel Programming 1 August 6th 03 09:36 PM


All times are GMT +1. The time now is 05:49 AM.

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"