LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to create Dynamic interrelated ranges in excel

Dear All,

Im facing a problem. Could any one have any suggestions to me to solv
my problem.

I have got a work sheet, in that I defined 2 ranges with the Range_
and Range_2.

Range_1 initially I defined as "A1:B1" (i.e one row and 2 columns)

In Range_1 the first column (i.e Cell A) contains description
and second column (i.e cell B) contains Amount.

Range_2 initially referring "B2"

I open the recordset and for each record I dynamically access "Range_1
and I increase one row
and assign values to the respecitve column and also increasing the Ro
in Range_2 with respective
of Range_1.

i.e the row that is referring Range_2 is always the after the last ro
of Range_1.

So finally my rows in Range_1 contains as many rows existing in m
database table.

Now the problem is I need to sum the amount in Range_1 after addin
each and every record
and I need to assign the sum to the cell that is pointing to Range_2.

One way that I can do is dynamically assigning the formula to Range_
cell after knowing
in which row Range_2 ends.

But Im doing using Excel Template.

So I need to define all in template it self like Range_1 and Range_
definitions.
Now I would like to know how if I define the formula for Range_2 s
that it dynamically
takes the Range_1 starting and ending row and calulate the sum and als
I would like to know
is there any way to define a Range relative to another range.

i.e if the first range dimensions changed then the second rang
dimensions shd change accordingly.

Thanks once again.
Vija

--
Message posted from http://www.ExcelForum.com

 
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
Can't Excel create dynamic web pages any more? LilyMudd Excel Discussion (Misc queries) 1 November 5th 08 03:51 PM
How do I set up a Dynamic Named Ranges in Excel 2007 Aussie Bob C Excel Discussion (Misc queries) 7 August 16th 08 07:22 PM
Using named ranges in dynamic charts (excel 2007) fruitticher Excel Worksheet Functions 8 September 19th 07 04:56 PM
dynamic ranges in excel 2007 onzilla Charts and Charting in Excel 6 April 24th 07 12:41 PM
Dynamic Formulas with Dynamic Ranges Ralph Howarth Excel Worksheet Functions 5 January 21st 05 08:44 AM


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