Deleting Dates :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Deleting Dates
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

Legolas26
Welcome to the Board


Joined: 19 Sep 2003
Posts: 3
Location: Florida
Flag: Usa

Status: Offline

 Reply with quote  

Deleting Dates

Okay, I have two different columns of data on the same worksheet, organized by date. I'm trying to match up dates and times together(this is well data, matching up two different wells measured on the same day). Some days one well was dry so my dates don't always match up, and I'm trying to go through and manually delete the dates that are out of sync. I just have so much data that this is going to take forever. Is there any way that Excel can find dates and times that are the same and match them up? Or any other ideas on how to do this?

Ex. 8/8/02 11:30|8/7/02 17:00
8/8/02 12:00|8/8/02 11:30

So those would be the columns and I want to match up 8/8/02 11:30 with 8/8/02 11:30. The columns aren't actually beside each other though, there's actual data in between, if it helps they are in rows A and E.
THANKS! icon_biggrin.gif

Post Fri Sep 19, 2003 6:08 pm 
 View user's profile Send private message

earlyd
Board Master


Joined: 11 Dec 2002
Posts: 955

Flag: Usa

Status: Offline

 Reply with quote  

Re: Deleting Dates

When you say match them up, what do you mean? Are you trying to rearrange them?

Post Fri Sep 19, 2003 6:12 pm 
 View user's profile Send private message

Iridium
Board Master
Board Master


Joined: 16 Jul 2002
Posts: 2581
Location: Walsall, England
Flag: England

Status: Offline

 Reply with quote  

Re: Deleting Dates

Can you post some data using Colo's utility (linked at the bottom of the page)?
_________________

Post Fri Sep 19, 2003 6:13 pm 
 View user's profile Send private message

Legolas26
Welcome to the Board


Joined: 19 Sep 2003
Posts: 3
Location: Florida
Flag: Usa

Status: Offline

 Reply with quote  

Re: Deleting Dates

I'm trying to go through and delete the ones that don't go together. They are entered as they were measured, and what happened is that sometimes there wasn't any data for one, so its column has less data than the other one and the dates don't match. I want to delete the extra dates so that all is left are measurements for the same days at the same times. Do you see what I'm saying?

Post Fri Sep 19, 2003 6:14 pm 
 View user's profile Send private message

earlyd
Board Master


Joined: 11 Dec 2002
Posts: 955

Flag: Usa

Status: Offline

 Reply with quote  

Re: Deleting Dates

You need a VBA macro to loop through the column, do comparisons and shift the cells up when a bogus value is found. This would take a bit of effort to write; not a two-minute answer. I assume either column could fall ahead or behind.

Post Fri Sep 19, 2003 6:18 pm 
 View user's profile Send private message

Legolas26
Welcome to the Board


Joined: 19 Sep 2003
Posts: 3
Location: Florida
Flag: Usa

Status: Offline

 Reply with quote  

Re: Deleting Dates

I don't know how to write macro...thanks anyway though.

Post Fri Sep 19, 2003 6:25 pm 
 View user's profile Send private message

Iridium
Board Master
Board Master


Joined: 16 Jul 2002
Posts: 2581
Location: Walsall, England
Flag: England

Status: Offline

 Reply with quote  

Re: Deleting Dates

Stick your s/s up on the board (if you can) and we (the board members) may be able to consttruct a macro or xl solution
_________________

Post Fri Sep 19, 2003 6:36 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.