Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Using SUM, ADDRESS, INDIRECT in an array not working

Hi,

Here's the problem (I simplified the formula a little to make it easier to
understand.)

=SUM(IF(AreaLookup_RD=1,INDIRECT("Area"&AreaLookup &"!B16"),0))

I am trying to add values in different worksheets if they are assigned to an
area #. I want the values in:

Area1!B16 (assigned to Region 1)
Area2!B16 (assigned to Region 1)
Area3!B16 (assigned to Region 2)
Area4!B16 (assigned to Region 2)
Area5!B16 (assigned to Region 3)
Area6!B16 (assigned to Region 3)
Area7!B16 (assigned to Region 3)

So I have a lookup table:

Column 1 = Region #
Column 2 = Area #

The formula above uses the lookup table to figure out which Area #'s to sum
up.

For some reason Excel is only doing the Array on the first worksheet and not
doing the Array in the INDIRECT function. So it basically adds up a bunch of
Area1!B16 instead of using the correct Area # to go to the right worksheet


I also tried rewriting it to:
=SUM(IF(Lookup!$I2:$I$30=1,"=INDIRECT("&ADDRESS(16 ,2,1,TRUE,"Area"&Lookup!$J$2:$J$30)&")",0))
- and -
=SUM(IF(Lookup!$I2:$I$30=1,ADDRESS(16,2,1,TRUE,"Ar ea"&Lookup!$J$2:$J$30),0))

Any help would be greatly appreciated!

Thanks,
Bradley
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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
indirect with address list Clif McIrvin Excel Worksheet Functions 5 March 11th 08 08:41 PM
using INDIRECT(ADDRESS(...)) Dave F[_2_] Excel Discussion (Misc queries) 4 January 3rd 08 07:55 PM
Indirect(Address(... Adam1 Chicago Excel Discussion (Misc queries) 1 November 6th 07 05:52 PM
Array reference using indirect address Mshaw Excel Worksheet Functions 13 October 3rd 07 06:43 PM


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