Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default lookup and return first...

Hi everybody

I have a problem which i can't solve. I have a matrix as follows

A B
1 JJ 20/4
2 FD 17/4
3 JJ 18/4
4 FD 19/4

How can i write a code in column B below that return the first date that is
in column B in the matrix above so at it looks as the matrix below.
A B
1 JJ 20/7
2 FD 17/4

thanks in advande


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default lookup and return first...

=VLOOKUP(A1,Sheet1!A:B,2,False)

Assuming that your first matrix is on Sheet1, your second matrix is on another sheet, with the JJ in
cell A1.

Then copy down.

HTH,
Bernie
MS Excel MVP


"Jesper" wrote in message
...
Hi everybody

I have a problem which i can't solve. I have a matrix as follows

A B
1 JJ 20/4
2 FD 17/4
3 JJ 18/4
4 FD 19/4

How can i write a code in column B below that return the first date that is
in column B in the matrix above so at it looks as the matrix below.
A B
1 JJ 20/7
2 FD 17/4

thanks in advande




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,047
Default lookup and return first...

Hi,

Vlookup will return the first occurence of it

assuming your range of data is in B5:C8 you can use:

=vlookup(b12,b5:c8,2,0)

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Jesper" escreveu:

Hi everybody

I have a problem which i can't solve. I have a matrix as follows

A B
1 JJ 20/4
2 FD 17/4
3 JJ 18/4
4 FD 19/4

How can i write a code in column B below that return the first date that is
in column B in the matrix above so at it looks as the matrix below.
A B
1 JJ 20/7
2 FD 17/4

thanks in advande


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ensure LOOkUP does not return #N/A Nick Horn Excel Worksheet Functions 1 January 7th 07 04:32 PM
LOOKUP and return the column heading for IF/THEN return for False NN Excel Discussion (Misc queries) 1 October 6th 06 11:24 AM
I need a Lookup to return more than 1 result joe1182 Excel Worksheet Functions 8 February 1st 06 02:52 PM
Lookup and return Delia Excel Worksheet Functions 2 August 24th 05 08:47 PM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 04:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"