LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Martin Underwood
 
Posts: n/a
Default Labelling a row so it can be used as an offset for sum, difference or range

I'm keeping a spreadsheet of my usage of electicity, gas and water by taking
meter readings every week or so. The table gradually acquires more rows over
time, as I take successive reading.

I display the total usage to date as a series of values at the bottom of
each column:

1 A B C D
3 Date Elec Gas Wat
4 1 Jan 05 123 345 34
5 1 Feb 05 127 350 35
6 15 Feb 05 138 355 39
7
8 Totals 15 10 9


Where B8 is B6-B4, C8 is C6-C4 etc.


Each time I add a new row (the next one would be below row 6) I need to
modify the formulae: for example B9 (which was B8 until I inserted the row)
needs to have its formula changed from B6-B4 to B7-B4 to include the row
I've just added. This is a tedious process.

I can label a cell but then I'd like to be able to use the row of that
labelled cell as a limit in a formula? I'd like to be able to label B8 as
"electricity_total" so I can set its formula to
"(col(electricity_total),row(electricity_total )-2)-B4" such that the
row/column of the lowest cell are calculated rather than being literals.
This way, every time I insert a row, I always include all rows up to the
n-2'th row where n is the row of the cell that contains the formula.


Similarly, it would be nice if I could do the same thing in the Source Data
fields of an X-Y graph (X=date, Y=daily usage) so I don't need to make
corresponding changes as I add more rows (eg changing "=$A$7:$A$100" to
"=$A$7:$A$101"). Given that I'm plotting three lines (electicity, gas,
water) and each has two values (X and Y) that's 6 ranges that I need to
change every time I add a new row.


I'm sure this must be possible, but I have the usual problem with online
help: trying to find a suitable phrase to search for in the index!

Defining the name for the cell is the easy bit (Insert | Names | Define) -
it's using that name in row() function and referring to a cell whose row
and column are calculated not literals that has got me baffled.






 
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
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
dynamic offset [email protected] Excel Discussion (Misc queries) 3 March 4th 05 12:38 AM
Formula Help With MATCH & OFFSET Joe Gieder Excel Worksheet Functions 1 March 2nd 05 10:58 PM
Offset, indirect, match function limitation on linked worksheets. NewAlgier Excel Worksheet Functions 1 December 6th 04 11:55 PM
Passing Cell Address to Offset Bob Excel Worksheet Functions 2 December 1st 04 04:56 PM


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