I found the function below online and wanted to use it however I get a syntax error when I try to use the function. Any ideas whats wrong with the syntax?
Please Login or Register to view this content.
I found the function below online and wanted to use it however I get a syntax error when I try to use the function. Any ideas whats wrong with the syntax?
Please Login or Register to view this content.
Last edited by bobaftt; 02-06-2009 at 01:04 PM.
Surplus lines need to be removed, below is the same albeit with a different last line:
If you assume you have a table of data say in A3:H10 and you want to return contents of column H where A:E match criteria values specified in A1:E1 you would use the UDF as so:Please Login or Register to view this content.
But you could of course do the same thing with native formulae, eg:Please Login or Register to view this content.
which would be quicker...IMOPlease Login or Register to view this content.
The difference would only appear if you had 1+ instances of the 5 matches... the UDF would return the first Match whereas the LOOKUP would by default return the last.... if there's only one match they'd both return the same result.
Last edited by DonkeyOte; 02-06-2009 at 01:37 PM.
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