View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
liem liem is offline
external usenet poster
 
Posts: 22
Default use vlookup with offset function

I tried but how come it began on the second person on the list ( Jeff) and
it skip the first person
--
thanks


"yshridhar" wrote:

Just try this formula
=IF(ROWS($1:1)<=COUNTIF($A$2:$A$16,$G$1),INDEX(B$2 :B$16,SMALL(IF(($A$2:$A$16=$G$1),ROW(B$2:B$16)-MIN(ROW(B$2:B$16))+1),ROWS($1:1))),"")
G1 = merchandise
With regards
Sridhar

"liem" wrote:

I have a drop down menu when I selected a item (merchandise...) I want to
return three row and four columns (B to e)
drop down menu merchandise
Gasoline
Food
A B c d e
merchandise john robert 500 40 4 .2%
merchandise jeff gordon 800 90 4.5%
merchandise julia robel 1000 90 6.5%
gasoline mak dune 50 34 3,2%
gasoline nancy thom 90 37 8.1%
gasoline john good 200 34 5.4%
food john 19 11 4.4%

what is the formula when I used vlookup(merchandise ...)
--
thanks