Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Does anyone know how to nest an AND function into an array. Suppose
I'm trying to find the highest column B value that coresponds to a column A value between 92.05 and 92.25 A B 92 2.89 92.01 7.03 92.02 4.67 92.06 2.76 92.11 5.11 92.13 3.25 92.21 5.58 92.27 7.47 92.29 7.5 92.3 7.04 I've tried this array formula {=MAX(IF(AND($A$1:$A$10=92.05,$A$1:$A$10<92.25),( $B$1:$B$10)))} but it returns a 0. If I take out the AND function and only compare column A values above or below one threshold it works. How do I make this search work? Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You cannot use Boolean function in an array function but you can use Boolean
operators: AND is *, OR is + SO you could use this (entered, of course, with CTRL+SHIFT+ENTER =MAX(IF(($A$1:$A$10=92.05)*($A$1:$A$10<92.25),($B $1:$B$10))) best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Vince" wrote in message ups.com... Does anyone know how to nest an AND function into an array. Suppose I'm trying to find the highest column B value that coresponds to a column A value between 92.05 and 92.25 A B 92 2.89 92.01 7.03 92.02 4.67 92.06 2.76 92.11 5.11 92.13 3.25 92.21 5.58 92.27 7.47 92.29 7.5 92.3 7.04 I've tried this array formula {=MAX(IF(AND($A$1:$A$10=92.05,$A$1:$A$10<92.25),( $B$1:$B$10)))} but it returns a 0. If I take out the AND function and only compare column A values above or below one threshold it works. How do I make this search work? Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, that was painfully simple.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
complex excel formula Array how do I convert it to a vba Function | Excel Worksheet Functions | |||
need some help with an array function | Excel Discussion (Misc queries) | |||
Array | Excel Worksheet Functions | |||
Using AND function within an array formula | Excel Worksheet Functions | |||
Array Function with VLOOKUP | Excel Worksheet Functions |