View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default lookup function to meet two conditions

Assume this table below is in cols A to C:

SO#'s Line Number Product descript
314 8 widget fluffy
326 2 wood
326 1 sofa
....

You could use an array-entered* index/match,
something like this:
=index(C2:C10,match(1,(a2:a10=326)*(b2:b10=2),0))
to return the product descript from col C (ie wood),
given an SO# (eg: 326) & line number (eg: 2)

*ie formula is confirmed via pressing CTRL+SHIFT+ENTER
instead of just pressing ENTER
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---