Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default dynamic formula

Hi all

I am trying to create a formula that will gather information located on
different worksheets. I am trying to do this dynamically by creating a
macro that will "rebuild" the formula after a new sheet is added.

The data is located in the same cell on each sheet.

I figured that I could write a for next loop that will parse through all the
work sheets and add the cell to the formula.

I am not a super programmer but I can get by so if someone can point me in
the right direction, I would appriciate it very much

thank You.


--
Mark Smith
SPX Air Gage Co.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default dynamic formula

You can do this with a macro, but why not use dummy hidden sheets as your
first and last sheets? Name them "First" and "Last" and hide them. Any new
sheets that you insert will be between the two hidden sheets. Then the
formula:

SUM(First:Last!A1)

will sum all the A1s no matter how many new sheets you insert.

--

Vasant




"Mark Smith" wrote in message
...
Hi all

I am trying to create a formula that will gather information located on
different worksheets. I am trying to do this dynamically by creating a
macro that will "rebuild" the formula after a new sheet is added.

The data is located in the same cell on each sheet.

I figured that I could write a for next loop that will parse through all

the
work sheets and add the cell to the formula.

I am not a super programmer but I can get by so if someone can point me in
the right direction, I would appriciate it very much

thank You.


--
Mark Smith
SPX Air Gage Co.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default dynamic formula

THANK YOU!!!!

That was very easy.


--
Mark Smith
SPX Air Gage Co.


"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
You can do this with a macro, but why not use dummy hidden sheets as your
first and last sheets? Name them "First" and "Last" and hide them. Any new
sheets that you insert will be between the two hidden sheets. Then the
formula:

SUM(First:Last!A1)

will sum all the A1s no matter how many new sheets you insert.

--

Vasant




"Mark Smith" wrote in message
...
Hi all

I am trying to create a formula that will gather information located on
different worksheets. I am trying to do this dynamically by creating a
macro that will "rebuild" the formula after a new sheet is added.

The data is located in the same cell on each sheet.

I figured that I could write a for next loop that will parse through all

the
work sheets and add the cell to the formula.

I am not a super programmer but I can get by so if someone can point me

in
the right direction, I would appriciate it very much

thank You.


--
Mark Smith
SPX Air Gage Co.







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default dynamic formula

You're most welcome! :-)

--

Vasant


"Mark Smith" wrote in message
...
THANK YOU!!!!

That was very easy.


--
Mark Smith
SPX Air Gage Co.


"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
You can do this with a macro, but why not use dummy hidden sheets as

your
first and last sheets? Name them "First" and "Last" and hide them. Any

new
sheets that you insert will be between the two hidden sheets. Then the
formula:

SUM(First:Last!A1)

will sum all the A1s no matter how many new sheets you insert.

--

Vasant




"Mark Smith" wrote in message
...
Hi all

I am trying to create a formula that will gather information located

on
different worksheets. I am trying to do this dynamically by creating

a
macro that will "rebuild" the formula after a new sheet is added.

The data is located in the same cell on each sheet.

I figured that I could write a for next loop that will parse through

all
the
work sheets and add the cell to the formula.

I am not a super programmer but I can get by so if someone can point

me
in
the right direction, I would appriciate it very much

thank You.


--
Mark Smith
SPX Air Gage Co.









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
Dynamic formula Jason Excel Worksheet Functions 1 August 20th 08 09:23 PM
How to convert a static formula to dynamic formula ? Pisistratus Excel Worksheet Functions 3 July 5th 07 01:54 PM
Dynamic Formula with Dynamic Address dmz_asdf Excel Worksheet Functions 7 December 15th 06 07:13 PM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM


All times are GMT +1. The time now is 12:32 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"