View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default vlookup with if statement together

Now it gets a bit more complicated.

Oh yeah, it always gets more and more complicated!!!

Try this array formula** :

=INDEX(Sheet1!D2:D10,MATCH(1,(A2=Sheet1!A2:A10)*( A2<=Sheet1!B2:B10)*(B2=Sheet1!C2:C10),0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"fruitchunk" wrote in message
...
Now it gets a bit more complicated. I have to use Start Date and End Date
on
sheet1

Sheet 1 - Column A: Start Date, Column B: End Date, Coulmn C:Names:,
Column
D: Control Numbers,
Sheet 2 - Column A: Date, Column B: Names, Column C: Code Numbers,
In Column D on sheet 2, I want to see the Control Number for the specific
Name and specific Date if the date on sheet2 either matches the start or
end date or is between the dates.

Thanks