Thanks D.O - I wonder if it is possible without using an array formula though?
If I want to use more than one (which I do) they can be quite hefty and slow the file down.
Thanks D.O - I wonder if it is possible without using an array formula though?
If I want to use more than one (which I do) they can be quite hefty and slow the file down.
zbor, that wouldn't work if D4 were say 4.1
KevinThomas, it will depend in part on how many variants of this calculation you're performing... the simplest non-array approach would be to store the ABS vaiance of A1:A26 to D4 in C1:C26 and then use a standard INDEX/MATCH as outlined by zbor
=INDEX(B1:B26,MATCH(MIN(C1:C26),C1:C26,0))
You can do this in non-array form without helpers
=INDEX(B1:B26,MATCH(MIN(INDEX(ABS(A1:A26-D4),0)),INDEX(ABS(A1:A26-D4),0),0)
but this is not efficient.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks