Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Sum - Offset - Address problem.

I have a growing table of data in Excel, in length, not width. Each month I
get a new table which will have that month's data to also be included in my
report.

I could obviously use a SUM() function at a suitable distance from the
bottom of the data as it stands to do this work for me, however I'm looking
for a permanent solution.

I have a 'Total' row as marked in the cell in (A) & x where x is the actual
row it's in.

I've done a MATCH() to get this row number into a cell, which I can then
use. What I'm now trying to do is sum a range of cells on that row but having
problems. I know the number of columns I want to sum and with the MATCH()
know what row it is in. I use A1 style notation, but can't seem to get the
right combination of functions to work for me.

I've tried =SUM(OFFSET(ADDRESS(A501,1)&":"&ADDRESS(A501,3), 0, 0, 0, 3)
but it returns a #VALUE error {cell A501 currently holds my MATCH() formula
for ease of use whilst testing}. I'm a little puzzled as to how to get this
to work.

Any help gratefully receieved.

TIA.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sum - Offset - Address problem.

Maybe

=SUM(OFFSET(A1,0,0,X-1,3)


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"DaveO" wrote in message
...
I have a growing table of data in Excel, in length, not width. Each month I
get a new table which will have that month's data to also be included in
my
report.

I could obviously use a SUM() function at a suitable distance from the
bottom of the data as it stands to do this work for me, however I'm
looking
for a permanent solution.

I have a 'Total' row as marked in the cell in (A) & x where x is the
actual
row it's in.

I've done a MATCH() to get this row number into a cell, which I can then
use. What I'm now trying to do is sum a range of cells on that row but
having
problems. I know the number of columns I want to sum and with the MATCH()
know what row it is in. I use A1 style notation, but can't seem to get the
right combination of functions to work for me.

I've tried =SUM(OFFSET(ADDRESS(A501,1)&":"&ADDRESS(A501,3), 0, 0, 0, 3)
but it returns a #VALUE error {cell A501 currently holds my MATCH()
formula
for ease of use whilst testing}. I'm a little puzzled as to how to get
this
to work.

Any help gratefully receieved.

TIA.



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
???? =offset(ADDRESS(ROW(),COLUMN()),1,1,1,1) Creator Excel Worksheet Functions 5 February 17th 06 02:16 PM
SUM, OFFSET and CELL("address") Quizarate Excel Worksheet Functions 7 August 17th 05 07:18 PM
OFFSET using ADDRESS for the reference argument TRE Excel Worksheet Functions 1 June 17th 05 01:33 PM
Offset with Cell("address") James W. Excel Worksheet Functions 1 December 7th 04 08:39 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 08:16 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"