Re: Using VLOOKUP in an array

From: Frank Kabel (frank.kabel_at_freenet.de)
Date: 05/18/04


Date: Tue, 18 May 2004 18:47:51 +0200

Hi Robert
I'm quite sure SUMPRODUCT is what you're looking for. If you may post
some example rows of your data (plain text) and describe your expected
result it's easy to derive a SUMPRODUCT formula

--
Regards
Frank Kabel
Frankfurt, Germany
Robert A wrote:
> "Returns" is a data table for Vlookup.  I'm attempting to use an
> array so that I can do multiple lookups in the same formula.
>
> For instance, the Returns table has 10 columns, each column
> represents a different stock index.  The rows in the Returns table
> represent a series of years.  My array formula looks up one or more
> indexes for a given year, and multiplies the individual indexes by an
> associated percentage for that index to produce a combined result..
>
> "Frank Kabel" <frank.kabel@freenet.de> wrote in message
> news:OSkKsOPPEHA.3348@TK2MSFTNGP09.phx.gbl...
>> Hi
>> something like
>> =SUMPRODUCT(--(Returns=B36),C5:C10,D5:D10)
>> not sure how 'Returns' is defined but VLOOKUP is definetly not the
>> correct function for this
>>
>> --
>> Regards
>> Frank Kabel
>> Frankfurt, Germany
>>
>>
>> Robert A wrote:
>>> Group:
>>>
>>> When I use VLOOKUP in an array as follows, the formula returns only
>>> the result of C5 times (D5 through D10):
>>>
>>> =SUM(VLOOKUP(B36,Returns,C5:C10))*(D5:D10)
>>>
>>> I'm trying to get C5 times D5, C6 times D6, etc.
>>>
>>> I've been struggling with this for a week.  How can VLOOKUP be used
>>> properly in an array?
>>>
>>> Robert
>>>
>>> ___________________________
>>> Robert Ades Accountancy Corp.
>>> 12100 Wilshire Blvd., Suite 660
>>> Los Angeles, CA 90025
>>> Tel:  310-571-1224
>>> Fax:  310-571-1227
>>>
>>> robert@robertades.com


Relevant Pages

  • Re: Using VLOOKUP in an array
    ... Robert A wrote: ... >>> "Returns" is a data table for Vlookup. ... >>> array so that I can do multiple lookups in the same formula. ... My array formula looks up one or more ...
    (microsoft.public.excel)
  • Re: Using VLOOKUP in an array
    ... "Returns" is a data table for Vlookup. ... I'm attempting to use an array so ... that I can do multiple lookups in the same formula. ... > Robert A wrote: ...
    (microsoft.public.excel)
  • Re: Using VLOOKUP in an array
    ... You realize that VLOOKUP can only look up one value in the left most column ... If so you can use this array formula ... "Robert A" wrote in message ... My array formula looks up one or more indexes for a given year, ...
    (microsoft.public.excel)
  • Re: Using VLOOKUP in an array
    ... Frank Kabel ... Robert A wrote: ... > When I use VLOOKUP in an array as follows, ...
    (microsoft.public.excel)
  • Re: set operations: union, intersection, etc. and alignment
    ... I ended up just writing a couple of custom functions to do the lookup ... Vlookup twice probably wouldn't make that much of a deal, ... To learn about ARRAY formulae go tohttp://www.cpearson.com/excel/ArrayFormulas.aspx. ... in which columns or groups of columns then filter based on those. ...
    (microsoft.public.excel.misc)