Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Compare dates in two different ranges

Hi. I have the following data in a worksheet:

A B
DATE NUMBER
05/15/2010 321
05/16/2010 558
05/17/2010 665
05/18/2010 262

C D
DATE NUMBER
06/10/2010 321
06/11/2010 558
06/12/2010 665
06/13/2010 262

This is data that I import from a company application, and as you can see, a
number can have more than one date associated. I need to obtain in another
range, the number (only once) and the dates associated to it. How can I do
this comparation and filtering?

Hope it is clear enough

Thanks in advance.

Regards.
Emece.-
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default Compare dates in two different ranges

Hi Emece

In F2 enter =B2
In G2
=INDEX(A:A,MATCH($F2,B:B,0))
In H2
=IF(COUNTIF(D:D,F2),INDEX(C:C,MATCH($F2,D:D,0)),"" )

Copy F2:H2 down the sheet as far as required.
--
Regards
Roger Govier

Emece wrote:
Hi. I have the following data in a worksheet:

A B
DATE NUMBER
05/15/2010 321
05/16/2010 558
05/17/2010 665
05/18/2010 262

C D
DATE NUMBER
06/10/2010 321
06/11/2010 558
06/12/2010 665
06/13/2010 262

This is data that I import from a company application, and as you can see, a
number can have more than one date associated. I need to obtain in another
range, the number (only once) and the dates associated to it. How can I do
this comparation and filtering?

Hope it is clear enough

Thanks in advance.

Regards.
Emece.-

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
compare two or more ranges tywlam Excel Worksheet Functions 3 April 23rd 09 10:18 AM
Compare ranges tywlam Excel Worksheet Functions 0 April 23rd 09 04:07 AM
Using IF to compare ranges [email protected] Excel Worksheet Functions 5 April 8th 09 06:47 PM
compare date ranges to set up eq Custermd Excel Worksheet Functions 0 February 21st 06 02:27 PM
Compare ranges different size markx Excel Worksheet Functions 3 February 23rd 05 09:08 AM


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