Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 158
Default Need to return an array

I am using this typical array-entered construct in "copy down" mode to
generate a list:

INDEX('All Data'!$B$4:$B$1504,SMALL(IF(AND('All Data'!$X$4:$X$1504=C$37,'All
Data'!$A$4:$A$1504=$C$3),ROW('All Data'!$B$4:$B$1504)-ROW('All
Data'!$I$4)+1),ROWS(C$40:C40)))

I've had to introduce an AND function to test for two conditions inside the
IF statement. I realize AND is not going to return an array, even with the
whole function being array-entered. Is there something I can use instead of
AND to produce a Boolean array: TRUE if both pairs test true, FALSE otherwise?

TIA

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Need to return an array

Multiplicative AND. Instead of:

AND('All Data'!$X$4:$X$1504=C$37,'All Data'!$A$4:$A$1504=$C$3)

try it this way:

('All Data'!$X$4:$X$1504=C$37)*('All Data'!$A$4:$A$1504=$C$3)

Hope this helps.

Pete

On Sep 10, 1:19*am, andy62 wrote:
I am using this typical array-entered construct in "copy down" mode to
generate a list:

INDEX('All Data'!$B$4:$B$1504,SMALL(IF(AND('All Data'!$X$4:$X$1504=C$37,'All
Data'!$A$4:$A$1504=$C$3),ROW('All Data'!$B$4:$B$1504)-ROW('All
Data'!$I$4)+1),ROWS(C$40:C40)))

I've had to introduce an AND function to test for two conditions inside the
IF statement. *I realize AND is not going to return an array, even with the
whole function being array-entered. *Is there something I can use instead of
AND to produce a Boolean array: TRUE if both pairs test true, FALSE otherwise?

TIA


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 158
Default Need to return an array

Perfect, thanks!

"Pete_UK" wrote:

Multiplicative AND. Instead of:

AND('All Data'!$X$4:$X$1504=C$37,'All Data'!$A$4:$A$1504=$C$3)

try it this way:

('All Data'!$X$4:$X$1504=C$37)*('All Data'!$A$4:$A$1504=$C$3)

Hope this helps.

Pete

On Sep 10, 1:19 am, andy62 wrote:
I am using this typical array-entered construct in "copy down" mode to
generate a list:

INDEX('All Data'!$B$4:$B$1504,SMALL(IF(AND('All Data'!$X$4:$X$1504=C$37,'All
Data'!$A$4:$A$1504=$C$3),ROW('All Data'!$B$4:$B$1504)-ROW('All
Data'!$I$4)+1),ROWS(C$40:C40)))

I've had to introduce an AND function to test for two conditions inside the
IF statement. I realize AND is not going to return an array, even with the
whole function being array-entered. Is there something I can use instead of
AND to produce a Boolean array: TRUE if both pairs test true, FALSE otherwise?

TIA



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Need to return an array

You're welcome, Andy - thanks for feeding back.

Pete

On Sep 10, 2:40*am, andy62 wrote:
Perfect, thanks!



"Pete_UK" wrote:
Multiplicative AND. Instead of:


AND('All Data'!$X$4:$X$1504=C$37,'All Data'!$A$4:$A$1504=$C$3)


try it this way:


('All Data'!$X$4:$X$1504=C$37)*('All Data'!$A$4:$A$1504=$C$3)


Hope this helps.


Pete


On Sep 10, 1:19 am, andy62 wrote:
I am using this typical array-entered construct in "copy down" mode to
generate a list:


INDEX('All Data'!$B$4:$B$1504,SMALL(IF(AND('All Data'!$X$4:$X$1504=C$37,'All
Data'!$A$4:$A$1504=$C$3),ROW('All Data'!$B$4:$B$1504)-ROW('All
Data'!$I$4)+1),ROWS(C$40:C40)))


I've had to introduce an AND function to test for two conditions inside the
IF statement. *I realize AND is not going to return an array, even with the
whole function being array-entered. *Is there something I can use instead of
AND to produce a Boolean array: TRUE if both pairs test true, FALSE otherwise?


TIA- Hide quoted text -


- Show quoted text -


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
Use array for lookup value, to return array of lookups Glen Excel Discussion (Misc queries) 3 May 7th 09 11:55 PM
Return 3D array? Dave P[_3_] Excel Worksheet Functions 6 March 17th 09 03:54 PM
Use array to return array of values Brad Excel Worksheet Functions 2 March 30th 06 05:58 PM
Return Array with Array Brad Excel Worksheet Functions 10 November 17th 05 06:45 PM
ARRAY FORMULA-RETURN 0 INSTEAD OF #DIV/0 Teri Excel Worksheet Functions 8 January 14th 05 05:45 PM


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