Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default IF statement with 2 array formulae

Hi,

I have an array formula, which did what it was meant to. However, i need
now to add a combo box to drill down further.

What i want to do is, if the combo selection is ALL, then run the array
formula that i was using before the combo was added, if it isnt then add the
extra to the array formula.

This is what it have

Previous Formula (ALL):

{SUM((Data!$A$2:$A$919=Regional!$D$8)*(Data!$A$2: $A$919<=Regional!$G$8)*(Data!$D$2:$D$919=Regional! $C14))}

New Formula (Not ALL)

{SUM((Data!$A$2:$A$919=Regional!$D$8)*(Data!$A$2: $A$919<=Regional!$G$8)*(Data!$D$2:$D$919=Regional! $C14)*(Data!$E$2:$E$919=Regional!$N$4))}


D8 and G8 are dates, C column is the region, and data is obviously the data
sheet.

I have tried this, but it doesnt work.

{=IF($J$4="All",SUM((Data!$A$2:$A$919=Regional!$D $8)*(Data!$A$2:$A$919<=Regional!$G$8)*(Data!$D$2:$ D$919=Regional!$C14)),SUM((Data!$A$2:$A$919=Regio nal!$D$8)*(Data!$A$2:$A$919<=Regional!$G$8)*(Data! $D$2:$D$919=Regional!$C14)*(Data!$E$2:$E$919=Regio nal!$N$4)))}

The 2nd half works, but the All bit doesnt.

Thanks in advance

Nathan.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default IF statement with 2 array formulae

Try this

=SUM((Data!$A$2:$A$919=Regional!$D$8)*
(Data!$A$2:$A$919<=Regional!$G$8)*
(Data!$D$2:$D$919=Regional!$C14)*
IF($J$4="All",Data!$E$2:$E$919=Regional!$N$4,1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"nathan_savidge" wrote in message
...
Hi,

I have an array formula, which did what it was meant to. However, i need
now to add a combo box to drill down further.

What i want to do is, if the combo selection is ALL, then run the array
formula that i was using before the combo was added, if it isnt then add
the
extra to the array formula.

This is what it have

Previous Formula (ALL):

{SUM((Data!$A$2:$A$919=Regional!$D$8)*(Data!$A$2: $A$919<=Regional!$G$8)*(Data!$D$2:$D$919=Regional! $C14))}

New Formula (Not ALL)

{SUM((Data!$A$2:$A$919=Regional!$D$8)*(Data!$A$2: $A$919<=Regional!$G$8)*(Data!$D$2:$D$919=Regional! $C14)*(Data!$E$2:$E$919=Regional!$N$4))}


D8 and G8 are dates, C column is the region, and data is obviously the
data
sheet.

I have tried this, but it doesnt work.

{=IF($J$4="All",SUM((Data!$A$2:$A$919=Regional!$D $8)*(Data!$A$2:$A$919<=Regional!$G$8)*(Data!$D$2:$ D$919=Regional!$C14)),SUM((Data!$A$2:$A$919=Regio nal!$D$8)*(Data!$A$2:$A$919<=Regional!$G$8)*(Data! $D$2:$D$919=Regional!$C14)*(Data!$E$2:$E$919=Regio nal!$N$4)))}

The 2nd half works, but the All bit doesnt.

Thanks in advance

Nathan.



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
Using wildcards in Array formulae John Excel Discussion (Misc queries) 2 August 17th 07 03:57 PM
Array formulae - problem Ola2B Excel Discussion (Misc queries) 4 June 21st 07 01:09 PM
How do I reference certain rows within array formulae? Crazy Pete Excel Worksheet Functions 11 June 13th 07 06:10 PM
How to concatenate an array of four stings using formulae (not UDF) Alan Excel Worksheet Functions 9 October 31st 06 05:22 AM
OFFSET and array formulae Wazooli Excel Discussion (Misc queries) 3 January 20th 05 12:09 AM


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