View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cav
 
Posts: n/a
Default Finding the Max of a related Value Lookup

Hi Folks,
I have been struggling with this for a bit now.
I have items available for purchase in E8:e66 (using list validation).
I have item written in $r8.
I have the actual cost paid for the item for that particular purchase in
h8:h66.
an Item can be purchased multiple times at different prices.

What I am trying to do is create a formula that will lookup all amounts paid
for the specific item type and return the maximum cost paid for that item.
My current formula version only reports back the first one found rather
than the maximum of all types of that item purchased.
=IF(W9=0,"None",MAX(VLOOKUP($R9,$E$8:$H$66,4,FALSE )))
where w9=amount of units purchased.(error removal)
Its really buggung me because its a simple result but a pain to generate.