Epsilon101
Programmer
Hi,
Got a vlookup problem in excel
I have checked out previous threads for this, i have seen Zathras' vlookupnext vba code as well, i havent had time to check it out fully.
I was trying something else and wondering if its possible.
ive sorted my numbers and used =countif($A$2:$A2,A2) in column B to give my numbers a sequence digit.
For example, data on sheet 1
IDNumber Sequence Date
9395839093 1 31/08/2004
9395839093 2 31/08/2004
9395839093 3 01/09/2004
6873859394 1 28/08/2004
5678902949 1 19/08/2004
2928384829 1 10/08/2004
2928384829 2 01/09/2004
Sheet2 , has a list of IDNumbers only once
what i wanted to try and do was, example:
IDNumber First Date Second Date third date
9395839093 31/08/2004 31/08/2004 01/09/2004
2928384829 10/08/2004 01/09/2004 N/A
and so on..
I cant remember exactly what ive tried because ive deleted it, something along these lines, put in sheet2
=IF((VLOOKUP(A2,Sheet1!A:C,2,"FALSE")=1),(VLOOKUP(A2,Sheet1!A:C,3,"FALSE")),"N/A")
i can see that its still no use for the 2 and 3, because the VLOOKUP part will still only look for first occurance, so one above will return 1 for the sequence everytime, and ill only ever find the first date and nothing else.
I cant see another way at the moment, anyone got any ideas.
---------------------------------------
Neil
Got a vlookup problem in excel
I have checked out previous threads for this, i have seen Zathras' vlookupnext vba code as well, i havent had time to check it out fully.
I was trying something else and wondering if its possible.
ive sorted my numbers and used =countif($A$2:$A2,A2) in column B to give my numbers a sequence digit.
For example, data on sheet 1
IDNumber Sequence Date
9395839093 1 31/08/2004
9395839093 2 31/08/2004
9395839093 3 01/09/2004
6873859394 1 28/08/2004
5678902949 1 19/08/2004
2928384829 1 10/08/2004
2928384829 2 01/09/2004
Sheet2 , has a list of IDNumbers only once
what i wanted to try and do was, example:
IDNumber First Date Second Date third date
9395839093 31/08/2004 31/08/2004 01/09/2004
2928384829 10/08/2004 01/09/2004 N/A
and so on..
I cant remember exactly what ive tried because ive deleted it, something along these lines, put in sheet2
=IF((VLOOKUP(A2,Sheet1!A:C,2,"FALSE")=1),(VLOOKUP(A2,Sheet1!A:C,3,"FALSE")),"N/A")
i can see that its still no use for the 2 and 3, because the VLOOKUP part will still only look for first occurance, so one above will return 1 for the sequence everytime, and ill only ever find the first date and nothing else.
I cant see another way at the moment, anyone got any ideas.
---------------------------------------
Neil