A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup based on 2 criteria



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2004, 02:06 PM
litos_aldovea
external usenet poster
 
Posts: n/a
Default Vlookup based on 2 criteria

Ok, that was easy for you guys but.....

I have now another problem totally related to this matter.

I have 3 columns of data, NAME, DATE,TEXT

NAME Date Text
Carlos 1/1/4 Hello
Carlos 2/1/4 Good
Carlos 5/6/4 Mountain
Carlos 6/6/4 CORRECT1
Peter 5/5/4 Friday
Peter 20/6/4 CORRECT2

date is in format dd/mm/yy

The forula that I need to use is

Look for CARLOS in the database, and retrieve TEXT when NAME is CARLOS
and DATE is the LATEST (for carlos of course).

In this example if I look for Carlos the data I want is CORRECT1
If I look for Peter the data I want should be CORRECT2

The formula I tried was

=index(Names,MATCH(1,(Names=Carlos)*(Dates=Max(Dat es)),0)

I retrieve 0 all the time.

I think it is because it doesn't match the latest date for carlos. I
can't make it work.

Any ideas will be very much appreciated.

Thanks and regards,
Carlos.


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.