Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Using the contents of a ADDRESS formula as the cell range in a for

We have a workbook, 2 spreadsheets - 1 data, 1 report. On the report is the
date in B3, will be typed in manually each time. On the data sheet are many
columns, the first of which is the date for the calendar year. In other
columns there are numbers that are typed in, and formulas in others (some of
which are DIV/0 due copydown).

What we want to do is to get the cell range for data!A2:Athe cell that
contains report!B3, and average the contents of, say column B for those same
rows.

We've found various ways of getting the mysterious and dynamic cell ref for
the final cell - CELL, OFFSET, etc, but we can't get the contents (not the
value) into another formula.

I found a formula at http://www.cpearson.com/excel/excelF.htm that makes
getting the cell range tidy, since the date will also be typed into Awhatever
each time, so that's good. But we're stymied on how to get the calculated
cell range to be the cell range in an averaging formula.

Thanks!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Using the contents of a ADDRESS formula as the cell range in a for

Have you tried INDIRECT() formula?

If not then suppose you want to average the numbers in A1:A20 on Sheet2
and if you have this string in
B1 (of the sheet you have the formula) you have the string
Sheet2!a1:a20

then you can use
=AVERAGE(INDIRECT(B1))

Basically build the string containing the range address and pass it to
INDIRECT within AVERAGE...


"Rose" wrote:

We have a workbook, 2 spreadsheets - 1 data, 1 report. On the report is the
date in B3, will be typed in manually each time. On the data sheet are many
columns, the first of which is the date for the calendar year. In other
columns there are numbers that are typed in, and formulas in others (some of
which are DIV/0 due copydown).

What we want to do is to get the cell range for data!A2:Athe cell that
contains report!B3, and average the contents of, say column B for those same
rows.

We've found various ways of getting the mysterious and dynamic cell ref for
the final cell - CELL, OFFSET, etc, but we can't get the contents (not the
value) into another formula.

I found a formula at http://www.cpearson.com/excel/excelF.htm that makes
getting the cell range tidy, since the date will also be typed into Awhatever
each time, so that's good. But we're stymied on how to get the calculated
cell range to be the cell range in an averaging formula.

Thanks!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Using the contents of a ADDRESS formula as the cell range in a for

I don't quite understand what you're getting at, but if you already
have the address (as a string) you can use INDIRECT to convert that to
a cell reference and pass that to AVERAGE. E.g.,

=AVERAGE(INDIRECT("the address string"))

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Fri, 13 Mar 2009 10:27:06 -0700, Rose
wrote:

We have a workbook, 2 spreadsheets - 1 data, 1 report. On the report is the
date in B3, will be typed in manually each time. On the data sheet are many
columns, the first of which is the date for the calendar year. In other
columns there are numbers that are typed in, and formulas in others (some of
which are DIV/0 due copydown).

What we want to do is to get the cell range for data!A2:Athe cell that
contains report!B3, and average the contents of, say column B for those same
rows.

We've found various ways of getting the mysterious and dynamic cell ref for
the final cell - CELL, OFFSET, etc, but we can't get the contents (not the
value) into another formula.

I found a formula at http://www.cpearson.com/excel/excelF.htm that makes
getting the cell range tidy, since the date will also be typed into Awhatever
each time, so that's good. But we're stymied on how to get the calculated
cell range to be the cell range in an averaging formula.

Thanks!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Using the contents of a ADDRESS formula as the cell range in a for

formulas in others (some of which are DIV/0 due copydown)

If there are errors they may cause the resulting formula to return an error.

Try this:

=AVERAGE(Data!B2:INDEX(Data!B2:B1000,MATCH(B3,Data !A2:A1000,0)))

--
Biff
Microsoft Excel MVP


"Rose" wrote in message
...
We have a workbook, 2 spreadsheets - 1 data, 1 report. On the report is
the
date in B3, will be typed in manually each time. On the data sheet are
many
columns, the first of which is the date for the calendar year. In other
columns there are numbers that are typed in, and formulas in others (some
of
which are DIV/0 due copydown).

What we want to do is to get the cell range for data!A2:Athe cell that
contains report!B3, and average the contents of, say column B for those
same
rows.

We've found various ways of getting the mysterious and dynamic cell ref
for
the final cell - CELL, OFFSET, etc, but we can't get the contents (not the
value) into another formula.

I found a formula at http://www.cpearson.com/excel/excelF.htm that makes
getting the cell range tidy, since the date will also be typed into
Awhatever
each time, so that's good. But we're stymied on how to get the calculated
cell range to be the cell range in an averaging formula.

Thanks!!



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
Insert a specific address from a list if the contents of cell A1=x Anne Excel Worksheet Functions 1 September 4th 08 06:04 PM
Insert Cell Contents in middle of web address Jetheat Excel Discussion (Misc queries) 2 March 5th 06 07:18 PM
How do I use cell contents as an address in a formula tomeck Excel Worksheet Functions 1 December 20th 05 05:46 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM
Formula to return ADDRESS of cell in range that meets criteria Christie Excel Worksheet Functions 1 March 4th 05 11:13 PM


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