Hi,
I have got a formula in C13 which returns the requested col. number - however, I have a feeling that you will probably find a simple and maybe shorter one.
As usually, no VBA nor Helper column, please.
Thanks, Elm
Hi,
I have got a formula in C13 which returns the requested col. number - however, I have a feeling that you will probably find a simple and maybe shorter one.
As usually, no VBA nor Helper column, please.
Thanks, Elm
Last edited by ElmerS; 05-05-2010 at 02:09 PM.
You could avoid the Volatility and shorten slightly by using INDEX
=SUM((ABS(INDEX(C4:G8;G12;0)-G11)=MIN(ABS(INDEX(C4:G8;G12;0)-G11)))*C3:G3)
confirmed with CTRL + SHIFT + ENTER
The above should also work even if the value is lower than 1st value or greater than last value unlike the present version.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
How about:
=MATCH(MIN(ABS(INDEX(C4:G8,G12,0)-G11)),ABS(INDEX(C4:G8,G12,0)-G11),0)
confirmed with CSE
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Much better - not sure why I didn't think of that - that's 1 oversight each of late I think - your Evaluate to my Array
Thank you both.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks