View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default Extract data from a table

=LOOKUP(10^10,SEARCH(16&4&2,A1:A20&B1:B20&C1:C20), D1:D20)


"shnim1" wrote:


Hi

I have data in four columns. Column A have numbers in the cells
(numbers between 1-20), column B with numbers 1-5, colum C with numbers
1-6. These numbers are not in any kind of order and sometimes repeat
themselves (shown more than once). In colum D I have text in each cell.
What I need to do is to extract the line of text that corresponds to a
row that meets a number criteria.

For example:
I get numbers 16, 4, and 2 (colums A. B and C). I need to know what the
text is in column D that has these three numbers in its row. I have
tried:

=sumproduct(--(a1:a20=16),--(b1:b20=4),--(c1:c20=2),(d1:d20))

but that just wants to add the cell value in coilumn D and return a
value of zero

please can anyone help

Cheers in advance




--
shnim1