PC Review


Reply
Thread Tools Rate Thread

compare 2 tables of dates to find the preceding dates

 
 
Babi
Guest
Posts: n/a
 
      28th Oct 2008
I have 2 tables of dates in the format DD-MM-YYYY.I want to compare the 2 set
of dates to find out which dates are preceding the others.
 
Reply With Quote
 
 
 
 
Sheeloo
Guest
Posts: n/a
 
      28th Oct 2008
=IF(A1<B1,"A1 is the earlier date","B1 is the earlier date")

"Babi" wrote:

> I have 2 tables of dates in the format DD-MM-YYYY.I want to compare the 2 set
> of dates to find out which dates are preceding the others.

 
Reply With Quote
 
ShaneDevenshire
Guest
Posts: n/a
 
      28th Oct 2008
Hi,

This is a little unclear. Which dates precede which dates? I will assume
that you are comparing the first cell of the first table to the first cell of
the second table.

Suppose table1 starts in cell A1 and table2 starts in cell H1, you can enter
the formula =A1-H1
If the result is positive A1 is later than H1. If not, the other way
around. If you want to get fancier you could use conditional formatting.
Select the cell you want to compare, A1, and choose Format, Conditional
Formatting, pick Formula is from the first drop down and enter the formula
=A1-H1>0
Click the click the Format button and choose a color on the Patterns tab.
Click OK once and then click Add
From the first drop down for this second condition pick Formula is, and
enter the formula
=A1-H1<0
Format this condition with a different color.
You can copy this format to all the cells in the first table and every cell
will be color coded to indicate if it is before or after the other cell
datewise. If no color appears the date are the same.
Modify the above as needed.


--
Thanks,
Shane Devenshire


"Babi" wrote:

> I have 2 tables of dates in the format DD-MM-YYYY.I want to compare the 2 set
> of dates to find out which dates are preceding the others.

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      28th Oct 2008
> I have 2 tables of dates in the format DD-MM-YYYY
> I want to compare the 2 set of dates
> to find out which dates are preceding the others


Real dates are just numbers, hence you should be able to just Data > Sort to
taste. If it doesn't respond to sort, then the dates are not real dates
recognized by Excel. In which case, you can try using Data > Text to Columns
to convert it all at one go (ie the col(s) of "dates") to real dates. In step
3 of the wizard, check "Dates", then select the appropriate date format (eg:
DMY) for the data.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting dates to current dates to find out the evaluation date Donica24 Microsoft Access Queries 1 26th Jan 2010 04:38 PM
How to group dates in pivot tables by weeksn ot single dates? =?Utf-8?B?UmV5bmFsZG8=?= Microsoft Access Getting Started 1 11th Aug 2006 02:06 PM
Compare and Append Dates in Seperate Tables. =?Utf-8?B?U3RlaWhs?= Microsoft Access 0 18th Jan 2006 01:34 PM
Compare dates in two tables to find most recent =?Utf-8?B?UG9ja2V0?= Microsoft Access 5 20th Jul 2005 09:19 PM
how do you compare two dates to find the difference? =?Utf-8?B?VG9kZA==?= Microsoft Excel Misc 3 4th Oct 2004 09:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 AM.