
Originally Posted by
MrShorty
I don't understand what is going wrong for you. Why can you not use AGGREGATE() in place of the MIN() function? My version of Excel does not have the AGGREGATE() function, so I cannot test, but it seems like =IF(A2<=0,1E9,AGGREGATE(5,6,A1,A2)) should work, and I cannot say why it does not (though I also cannot be sure if you tried it, either).
If that really does not work, I could get this to work in my version of Excel =IF(A2<=0,1E9,MIN(IFERROR(A1,A2),A2)) where I use the IFERROR() function to trap the N/A errors that occasionally show up in A1 and ignore them. But it seems like AGGREGATE() should work just fine if you don't need backwards compatibility.
Bookmarks