#1   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default vlookup or Match

I have two worksheets with the following Data in each column

Sheet 1
A B C D
1 1000 14/08/2008 10:20 15/09/2008 13:45
2 1002 19/08/2008 21:00 17/09/2008 23:55
3 1003 22/08/2008 06:55 22/09/2008 19:35
4 1006 29/08/2008 02:20 25/09/2008 05:15

Sheet 2
A B C D
152 1001 12/08/2008 00:25 10/09/2008 18:35
153 1000 18/08/2008 10:20 15/09/2008 13:45
154 1002 24/08/2008 21:00 17/09/2008 23:55
155 1003 28/08/2008 06:55 22/09/2008 19:35

In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default vlookup or Match

Hi,

=SUMPRODUCT(--(G2=sheet1!B1:B1000),sheet1!C1:C1000)

change range to fit your needs but remember both sides of the formula need
the same range

Format column E with the same format used in column C

if you are using excel 2007

=SUMPRODUCT(--(G2=sheet1!B:B),sheet1!C:C)

if this helps please click yes thanks

"Rob" wrote:

I have two worksheets with the following Data in each column

Sheet 1
A B C D
1 1000 14/08/2008 10:20 15/09/2008 13:45
2 1002 19/08/2008 21:00 17/09/2008 23:55
3 1003 22/08/2008 06:55 22/09/2008 19:35
4 1006 29/08/2008 02:20 25/09/2008 05:15

Sheet 2
A B C D
152 1001 12/08/2008 00:25 10/09/2008 18:35
153 1000 18/08/2008 10:20 15/09/2008 13:45
154 1002 24/08/2008 21:00 17/09/2008 23:55
155 1003 28/08/2008 06:55 22/09/2008 19:35

In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default vlookup or Match

Try this in E1 of Sheet2:

=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1:She et1!B:C,2,0))

Format the cell as dd/mm/yyyy if you only want to see the date, then
copy down.

Hope this helps.

Pete

On Sep 16, 11:31*am, Rob wrote:
I have two worksheets with the following Data in each column

Sheet 1 * * * * * * * * * * * * * * * *
A * * B * * * * *C * * * * * * * * * * * * * * * * D
1 * 1000 * 14/08/2008 10:20 * * 15/09/2008 13:45
2 * 1002 * 19/08/2008 21:00 * * 17/09/2008 23:55
3 * 1003 * 22/08/2008 06:55 * * 22/09/2008 19:35
4 * 1006 * 29/08/2008 02:20 * * 25/09/2008 05:15

Sheet 2 * * * * * * * * * * * * * * * *
A * * * *B * * * * * * * C * * * * * * * * * * * * * * * * D
152 *1001 * * * 12/08/2008 00:25 * * * *10/09/2008 18:35
153 *1000 * * * 18/08/2008 10:20 * * * *15/09/2008 13:45
154 *1002 * * * 24/08/2008 21:00 * * * *17/09/2008 23:55
155 *1003 * * * 28/08/2008 06:55 * * * *22/09/2008 19:35

In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default vlookup or Match

Sorry, a typo in there - should be:

=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1,She et1!B:C,2,0))

Pete

On Sep 16, 11:45*am, Pete_UK wrote:
Try this in E1 of Sheet2:

=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1:She et1!B:C,2,0))

Format the cell as dd/mm/yyyy if you only want to see the date, then
copy down.

Hope this helps.

Pete

On Sep 16, 11:31*am, Rob wrote:



I have two worksheets with the following Data in each column


Sheet 1 * * * * * * * * * * * * * * * *
A * * B * * * * *C * * * * * * * * * * * * * * * * D
1 * 1000 * 14/08/2008 10:20 * * 15/09/2008 13:45
2 * 1002 * 19/08/2008 21:00 * * 17/09/2008 23:55
3 * 1003 * 22/08/2008 06:55 * * 22/09/2008 19:35
4 * 1006 * 29/08/2008 02:20 * * 25/09/2008 05:15


Sheet 2 * * * * * * * * * * * * * * * *
A * * * *B * * * * * * * C * * * * * * * * * * * * * * * * D
152 *1001 * * * 12/08/2008 00:25 * * * *10/09/2008 18:35
153 *1000 * * * 18/08/2008 10:20 * * * *15/09/2008 13:45
154 *1002 * * * 24/08/2008 21:00 * * * *17/09/2008 23:55
155 *1003 * * * 28/08/2008 06:55 * * * *22/09/2008 19:35


In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default vlookup or Match

Opps I misread your post use this

=IF(ISNA(MATCH(c2,Sheet1!B1:B1000,0)),"",SUMPRODUC T(--(C2=sheet1!B1:B1000),sheet1!C1:C1000))

if you are using excel 2007

=IF(ISNA(MATCH(c2,Sheet1!B:B,0)),"",SUMPRODUCT(--(C2=sheet1!B:B),sheet1!C:C))


"Eduardo" wrote:

Hi,

=SUMPRODUCT(--(G2=sheet1!B1:B1000),sheet1!C1:C1000)

change range to fit your needs but remember both sides of the formula need
the same range

Format column E with the same format used in column C

if you are using excel 2007

=SUMPRODUCT(--(G2=sheet1!B:B),sheet1!C:C)

if this helps please click yes thanks

"Rob" wrote:

I have two worksheets with the following Data in each column

Sheet 1
A B C D
1 1000 14/08/2008 10:20 15/09/2008 13:45
2 1002 19/08/2008 21:00 17/09/2008 23:55
3 1003 22/08/2008 06:55 22/09/2008 19:35
4 1006 29/08/2008 02:20 25/09/2008 05:15

Sheet 2
A B C D
152 1001 12/08/2008 00:25 10/09/2008 18:35
153 1000 18/08/2008 10:20 15/09/2008 13:45
154 1002 24/08/2008 21:00 17/09/2008 23:55
155 1003 28/08/2008 06:55 22/09/2008 19:35

In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"



  #6   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default vlookup or Match

Thank you these have worked fine

"Pete_UK" wrote:

Sorry, a typo in there - should be:

=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1,She et1!B:C,2,0))

Pete

On Sep 16, 11:45 am, Pete_UK wrote:
Try this in E1 of Sheet2:

=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1:She et1!B:C,2,0))

Format the cell as dd/mm/yyyy if you only want to see the date, then
copy down.

Hope this helps.

Pete

On Sep 16, 11:31 am, Rob wrote:



I have two worksheets with the following Data in each column


Sheet 1
A B C D
1 1000 14/08/2008 10:20 15/09/2008 13:45
2 1002 19/08/2008 21:00 17/09/2008 23:55
3 1003 22/08/2008 06:55 22/09/2008 19:35
4 1006 29/08/2008 02:20 25/09/2008 05:15


Sheet 2
A B C D
152 1001 12/08/2008 00:25 10/09/2008 18:35
153 1000 18/08/2008 10:20 15/09/2008 13:45
154 1002 24/08/2008 21:00 17/09/2008 23:55
155 1003 28/08/2008 06:55 22/09/2008 19:35


In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default vlookup or Match

You're welcome, Rob - thanks for feeding back.

Pete

On Sep 16, 1:43*pm, Rob wrote:
Thank you these have worked fine



"Pete_UK" wrote:
Sorry, a typo in there - should be:


=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1,She et1!B:C,2,0))


Pete


On Sep 16, 11:45 am, Pete_UK wrote:
Try this in E1 of Sheet2:


=IF(ISNA(MATCH(B1,Sheet1!B:B,0)),"",VLOOKUP(B1:She et1!B:C,2,0))


Format the cell as dd/mm/yyyy if you only want to see the date, then
copy down.


Hope this helps.


Pete


On Sep 16, 11:31 am, Rob wrote:


I have two worksheets with the following Data in each column


Sheet 1 * * * * * * * * * * * * * * * *
A * * B * * * * *C * * * * * * * * * * * * * * * * D
1 * 1000 * 14/08/2008 10:20 * * 15/09/2008 13:45
2 * 1002 * 19/08/2008 21:00 * * 17/09/2008 23:55
3 * 1003 * 22/08/2008 06:55 * * 22/09/2008 19:35
4 * 1006 * 29/08/2008 02:20 * * 25/09/2008 05:15


Sheet 2 * * * * * * * * * * * * * * * *
A * * * *B * * * * * * * C * * * * * * * * * * * * * * * * D
152 *1001 * * * 12/08/2008 00:25 * * * *10/09/2008 18:35
153 *1000 * * * 18/08/2008 10:20 * * * *15/09/2008 13:45
154 *1002 * * * 24/08/2008 21:00 * * * *17/09/2008 23:55
155 *1003 * * * 28/08/2008 06:55 * * * *22/09/2008 19:35


In column E on Sheet 2 I would like to see the date from Column C on Sheet 1
where the number in Column B Sheet 2 matches the number in Column B Sheet 1
and where their is no match then return "blank"- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
vlookup retunrning a match, when not a match... Dave Peterson Excel Worksheet Functions 1 October 2nd 08 11:22 PM
vlookup retunrning a match, when not a match... mark Excel Worksheet Functions 4 October 2nd 08 10:39 PM
vlookup retunrning a match, when not a match... Niek Otten Excel Worksheet Functions 0 October 2nd 08 09:00 PM
second or third match in vlookup() or Match() Dan Excel Worksheet Functions 5 June 3rd 08 07:17 PM
index Match, or Vlookup Match.. news.transedge.com Excel Worksheet Functions 1 August 3rd 07 02:00 AM


All times are GMT +1. The time now is 04:06 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"