Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Using Named Range within an Array Formula

I am trying to refer to a named range within an array formula without a great
deal of success - my original formula is as follows:

{=SUM(IF(Data!$A$2:$A$145=$B$6,IF(Data!$B$2:$B$145 =$B7,Data!$C$2:$C$145,0),0))}

I want to change the reference "Data!$$B$2:$B$145" to the dynamicly named
range "Capital_Classification_1" so that if any extra lines of data are added
to the Data worksheet the array formula automatically picks this new data up
without me having to re-set the range in the array.

Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Using Named Range within an Array Formula

The below will work only if the number of rows in all 3 named ranges are
same...
Try the below with rnga, rngb, rngc all three having same number of rows.

(array entered)
=SUM(IF(rnga=$B$6,IF(rngb=$B7,rngc,0),0))

If this post helps click Yes
---------------
Jacob Skaria


"Ivor Davies" wrote:

I am trying to refer to a named range within an array formula without a great
deal of success - my original formula is as follows:

{=SUM(IF(Data!$A$2:$A$145=$B$6,IF(Data!$B$2:$B$145 =$B7,Data!$C$2:$C$145,0),0))}

I want to change the reference "Data!$$B$2:$B$145" to the dynamicly named
range "Capital_Classification_1" so that if any extra lines of data are added
to the Data worksheet the array formula automatically picks this new data up
without me having to re-set the range in the array.

Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Using Named Range within an Array Formula

Supposing you have this dynamic range:
Capital_Classification_1
=OFFSET(Data!$A$1,,,COUNTA(Data!$A:$A))

Then you could try this, normal ENTER:
=SUMPRODUCT((OFFSET(Capital_Classification_1,,,)=$ B$6)*(OFFSET(Capital_Classification_1,,1,)=$B$7),O FFSET(Capital_Classification_1,,2,))

(Vary/use the col param in the OFFSET to point to cols A, B, C)

Above lightly tested ok
Success? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Ivor Davies" wrote:
I am trying to refer to a named range within an array formula without a great
deal of success - my original formula is as follows:

{=SUM(IF(Data!$A$2:$A$145=$B$6,IF(Data!$B$2:$B$145 =$B7,Data!$C$2:$C$145,0),0))}

I want to change the reference "Data!$$B$2:$B$145" to the dynamicly named
range "Capital_Classification_1" so that if any extra lines of data are added
to the Data worksheet the array formula automatically picks this new data up
without me having to re-set the range in the array.

Is this possible?

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
count(if(... using array formula: can I use a named range in my ca katy Excel Worksheet Functions 1 January 15th 08 02:13 AM
Use named ranges in array formula Jan Excel Worksheet Functions 14 February 26th 07 08:11 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
Named range into an array Frigster Excel Worksheet Functions 2 September 6th 06 07:08 PM
Array to named range conversion... i-Zapp Excel Discussion (Misc queries) 4 October 25th 05 09:09 PM


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