Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Dynamic multiple-condition array function with more than one name

Here's something weird I can't figure out. The problem is that I need a cell
to look at 1 dynamic range where the values in those ranges match
dynamic/static values. The dynamic thing eliminates the D* functions (which
seem to need static values like "Hat" rather than "A1").

So, if I have two named ranges
nmeBacklogProjectColumn which is really $A$2:$A$2000
nmeBacklogProjectColumn which is really $Z$2:$Z$2000

and I do
{=SUM((nmeBacklogProjectColumn=A11)*(nmeBacklogRow TypeColumn="Task")*1)}

I get "#N/A"

but if I do any of the following
{=SUM((nmeBacklogProjectColumn=A11)*1)}
{=SUM((nmeBacklogRowTypeColumn="Task")*1)}

I get valid results and if I do this

{=SUM(($A$2:$A$2000=A11)*($Z$2:$Z$2000="Task")*1)}

I get the result I wanted originally

However, the $2000 number is arbitrary - it's growing dynamically so I'd
rather use a named range so I can change it one place and the sheet is
updated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Dynamic multiple-condition array function with more than one name

I think I figured this out. My problem is that the range's are dynamic, a la

=OFFSET(WorkBacklog!$A$2,0,0,COUNTA(WorkBacklog!$A :$A),1)

if I change them to static, they work fine.

However, the above works okay in other situations.. Wierd.

"Gary F" wrote:

Here's something weird I can't figure out. The problem is that I need a cell
to look at 1 dynamic range where the values in those ranges match
dynamic/static values. The dynamic thing eliminates the D* functions (which
seem to need static values like "Hat" rather than "A1").

So, if I have two named ranges
nmeBacklogProjectColumn which is really $A$2:$A$2000
nmeBacklogProjectColumn which is really $Z$2:$Z$2000

and I do
{=SUM((nmeBacklogProjectColumn=A11)*(nmeBacklogRow TypeColumn="Task")*1)}

I get "#N/A"

but if I do any of the following
{=SUM((nmeBacklogProjectColumn=A11)*1)}
{=SUM((nmeBacklogRowTypeColumn="Task")*1)}

I get valid results and if I do this

{=SUM(($A$2:$A$2000=A11)*($Z$2:$Z$2000="Task")*1)}

I get the result I wanted originally

However, the $2000 number is arbitrary - it's growing dynamically so I'd
rather use a named range so I can change it one place and the sheet is
updated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Dynamic multiple-condition array function with more than one name

Are all the dynamic ranges the same size?

Biff

"Gary F" wrote in message
...
I think I figured this out. My problem is that the range's are dynamic, a
la

=OFFSET(WorkBacklog!$A$2,0,0,COUNTA(WorkBacklog!$A :$A),1)

if I change them to static, they work fine.

However, the above works okay in other situations.. Wierd.

"Gary F" wrote:

Here's something weird I can't figure out. The problem is that I need a
cell
to look at 1 dynamic range where the values in those ranges match
dynamic/static values. The dynamic thing eliminates the D* functions
(which
seem to need static values like "Hat" rather than "A1").

So, if I have two named ranges
nmeBacklogProjectColumn which is really $A$2:$A$2000
nmeBacklogProjectColumn which is really $Z$2:$Z$2000

and I do
{=SUM((nmeBacklogProjectColumn=A11)*(nmeBacklogRow TypeColumn="Task")*1)}

I get "#N/A"

but if I do any of the following
{=SUM((nmeBacklogProjectColumn=A11)*1)}
{=SUM((nmeBacklogRowTypeColumn="Task")*1)}

I get valid results and if I do this

{=SUM(($A$2:$A$2000=A11)*($Z$2:$Z$2000="Task")*1)}

I get the result I wanted originally

However, the $2000 number is arbitrary - it's growing dynamically so I'd
rather use a named range so I can change it one place and the sheet is
updated.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Dynamic multiple-condition array function with more than one n

Yep.

"Biff" wrote:

Are all the dynamic ranges the same size?

Biff

"Gary F" wrote in message
...
I think I figured this out. My problem is that the range's are dynamic, a
la

=OFFSET(WorkBacklog!$A$2,0,0,COUNTA(WorkBacklog!$A :$A),1)

if I change them to static, they work fine.

However, the above works okay in other situations.. Wierd.

"Gary F" wrote:

Here's something weird I can't figure out. The problem is that I need a
cell
to look at 1 dynamic range where the values in those ranges match
dynamic/static values. The dynamic thing eliminates the D* functions
(which
seem to need static values like "Hat" rather than "A1").

So, if I have two named ranges
nmeBacklogProjectColumn which is really $A$2:$A$2000
nmeBacklogProjectColumn which is really $Z$2:$Z$2000

and I do
{=SUM((nmeBacklogProjectColumn=A11)*(nmeBacklogRow TypeColumn="Task")*1)}

I get "#N/A"

but if I do any of the following
{=SUM((nmeBacklogProjectColumn=A11)*1)}
{=SUM((nmeBacklogRowTypeColumn="Task")*1)}

I get valid results and if I do this

{=SUM(($A$2:$A$2000=A11)*($Z$2:$Z$2000="Task")*1)}

I get the result I wanted originally

However, the $2000 number is arbitrary - it's growing dynamically so I'd
rather use a named range so I can change it one place and the sheet is
updated.




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
MEDIAN() as array function? Henrik Excel Worksheet Functions 6 October 11th 05 11:35 PM
Using solver with function with multiple outputs [email protected] Excel Worksheet Functions 5 July 29th 05 01:58 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Array Function Question Henrik Excel Worksheet Functions 1 June 8th 05 02:24 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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