ehcpieterse
Active Member
- Joined
- Nov 16, 2006
- Messages
- 278
Hi,
I have been able to use an array function to search for a conditional max value:
{=MAX(IF(MyRange=TestValue,LookupRange))}
Given the data below (apologies for the formatting) how do I return the corresponding value in the 3rd column (AvgPx), given that I used the formula above to return the conditional max in the 2nd column (CumQty)?
OrderID CumQty AvgPx
1,FixClient,6394807088963162 0 0
2,FixClient,6394807122184812 0 0
1,FixClient,6394807088963162 0 0
2,FixClient,6394807122184812 0 0
2,FixClient,6394807122184812 2201 3407
1,FixClient,6394807088963162 201 4387
2,FixClient,6394807122184812 2206 3406.959202
1,FixClient,6394807088963162 206 4362.776699
2,FixClient,6394807122184812 2229 3406.77389
1,FixClient,6394807088963162 229 4264.973799
I have been able to use an array function to search for a conditional max value:
{=MAX(IF(MyRange=TestValue,LookupRange))}
Given the data below (apologies for the formatting) how do I return the corresponding value in the 3rd column (AvgPx), given that I used the formula above to return the conditional max in the 2nd column (CumQty)?
OrderID CumQty AvgPx
1,FixClient,6394807088963162 0 0
2,FixClient,6394807122184812 0 0
1,FixClient,6394807088963162 0 0
2,FixClient,6394807122184812 0 0
2,FixClient,6394807122184812 2201 3407
1,FixClient,6394807088963162 201 4387
2,FixClient,6394807122184812 2206 3406.959202
1,FixClient,6394807088963162 206 4362.776699
2,FixClient,6394807122184812 2229 3406.77389
1,FixClient,6394807088963162 229 4264.973799