@ Aladin
Thanks a lot Aladin for pointing me to some useful references. Meanwhile, i was already aware of this "Big Value" lookup method through you, actually through Mike Excelisfun Girvin who refers to you as the reference in formulas. A privilege to learn from you. Actually, i really wanted to emphasize the result from Search function which , like Barry Houdini case, gives the first position of the lookup text and when added an "*" indicates "1" for an item and "#VALUE" error for not found item.
It's much more similar to and less accurate than Ron Coderre formula on the same subject in another topic where "COUNTIF" is used to evaluate cell and "SUMPRODUCT" for adding all found items.
Hope to be clear. Once more time for your dedication to Excel Community. You're a model for us.
Ma parole! Pas de problem. I know what you mean. And thanks for the kind words. To recap a small history:
1) Look up functions ignore error values if they possibly can (they can't if they are just fed with, e.g., {#VALUE!;#VALUE!}).
2) Look up functions with match type set to 1 (or TRUE) are really fast.
3) When a look up function is given a numerical look up value for looking it up in a numeric reference, with
BigNum sufficiently large
LOOKUP(BigNum,Reference)
returns invariably the last numeric value of Reference and does so very fast.
MATCH(BigNum,Reference,1)
returns the position of the last numeric value of Reference and does so very fast.
4) Sufficiently large means:
LOOKUP(
MAX(Reference)+Delta,Reference)
where Delta is very small number (or just 1 for convenience's sake).
5) The reason for not using
MAX(Reference)+Delta is threefold:
- it means an additional function call;
- as function MAX is slow because it examines every cell in Reference;
- MAX is sensitive to the presence of error values in Reference;
6) I've met the last value usage for the first time in a post by Dave Hawley and it's me (I believe) who introduced and showed with many others the usage worldwide thru forums (mrexcel, newsgroups, and so on).
7) I had something like 1E+30 as BigNum initially. After the following exchange with Mark W. in 2001...
Excel last number in column
I opted ever since for Excel's 9.99999999999999E+307.
8) Since there is no reason for choosing an ever-changing value for BigNum,
I still use 9.99999999999999E+307 anchored in Excel itself (or a Pi-like contraction: 9.99E+307).
9) It would be really great if MS would provide names for such constants it is bounded with.