NBVC
The value that would be filled into the new cell would be either STF,MGR, or CTR.
Donkey
what is the 9.99E+307 for in your code snippet.
NBVC
The value that would be filled into the new cell would be either STF,MGR, or CTR.
Donkey
what is the 9.99E+307 for in your code snippet.
It is a big number 9.99*10^307
Used in this context it ensures LOOKUP returns the value from the result_vector associated with the last numeric value found in the lookup_vector
Brief overview: http://www.excelforum.com/2466052-post12.html - though this is aimed at the text equivalent the same principles hold true for this numeric version
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Cool thanks for the knowldege and the formula works like a charm. Can i add criteria to it just by adding another search definition and response?
Yes, if you have lots of items it would probably make more sense to store them (and responses) in a range and alter the formula accordingly, eg:
where C1:C10 hold search terms (* in C1) and D1:D10 associated responses (="" in D1)![]()
=LOOKUP(9.99E+307,SEARCH(INDEX(C1:C10&REPT("ZZZ",C1:C10=""),0),A1&" "),D1:D10)
the use of INDEX & REPT is just to account for possibility that C1:C10 may contain blanks (to be ignored)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks