#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default address function

L1 has the formula
=ADDRESS(4,MATCH(L$2,$3:$3,0))
This returns $g$4

L2 has the value 08

Range d3 €“ j3 has the values
D e f g h I j
Row 3 07,07,07,08,08,08,08
Row 4 23,22,21,23,21,21,22

L4 as the formula
=SUM(OFFSET(INDIRECT(L$1),0,0,1,COUNTIF($3:$3,L$2) ))
This returns 87

This is all very well.

When I try to replace the indirect portion of L4 with the address formula
from L1 it errors.

=SUM(OFFSET(ADDRESS(4,MATCH(L$2,$3:$3,0)),0,0,1,CO UNTIF($3:$3,L$2)))
?????

Any ideas???
Peter

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default address function

That's because the ADDRESS function returns a TEXT string. A TEXT string is
not a valid reference even if it looks like one.

--
Biff
Microsoft Excel MVP


"peter" wrote in message
...
L1 has the formula
=ADDRESS(4,MATCH(L$2,$3:$3,0))
This returns $g$4

L2 has the value 08

Range d3 - j3 has the values
D e f g h I j
Row 3 07,07,07,08,08,08,08
Row 4 23,22,21,23,21,21,22

L4 as the formula
=SUM(OFFSET(INDIRECT(L$1),0,0,1,COUNTIF($3:$3,L$2) ))
This returns 87

This is all very well.

When I try to replace the indirect portion of L4 with the address formula
from L1 it errors.

=SUM(OFFSET(ADDRESS(4,MATCH(L$2,$3:$3,0)),0,0,1,CO UNTIF($3:$3,L$2)))
?????

Any ideas???
Peter



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default address function

Why would you want to replace the concise "Indirect(L1)" with the much
longer Address() formula?

Are you looking to eliminate the need for using cell L1, or are you just
looking at this as a topic of conversation?

To eliminate the need for L1, simply wrap the Address formula in Indirect,
as you did previously with the "Indirect(L1)" reference:

=SUM(OFFSET(INDIRECT(ADDRESS(4,MATCH(L$2,$3:$3,0)) ),0,0,1,COUNTIF($3:$3,L$2)))

I would suspect that you are aware of this, since you did use Indirect with
L1 in the first place.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"peter" wrote in message
...
L1 has the formula
=ADDRESS(4,MATCH(L$2,$3:$3,0))
This returns $g$4

L2 has the value 08

Range d3 - j3 has the values
D e f g h I j
Row 3 07,07,07,08,08,08,08
Row 4 23,22,21,23,21,21,22

L4 as the formula
=SUM(OFFSET(INDIRECT(L$1),0,0,1,COUNTIF($3:$3,L$2) ))
This returns 87

This is all very well.

When I try to replace the indirect portion of L4 with the address formula
from L1 it errors.

=SUM(OFFSET(ADDRESS(4,MATCH(L$2,$3:$3,0)),0,0,1,CO UNTIF($3:$3,L$2)))
?????

Any ideas???
Peter



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
address function FiluDlidu Excel Discussion (Misc queries) 1 August 12th 07 06:35 PM
cannot nest address function into another function Ian Excel Discussion (Misc queries) 7 April 27th 07 07:03 AM
address function sot Excel Discussion (Misc queries) 2 February 22nd 07 05:11 PM
address function flyingmeatball Excel Worksheet Functions 1 August 17th 06 04:10 PM
ADDRESS Function QC Coug Excel Worksheet Functions 1 April 14th 06 12:25 AM


All times are GMT +1. The time now is 02:20 PM.

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"