Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Macro help

Hi, i need a macro to delete all rows except for the smallest and biggest
time in column "B". But i need the code to look in other columns before that.
Some kind of macro criteria.

Ex:
A B C D E
Date Time Station Id Name
01.12.09 08:01:19 IN 5 John
01.12.09 09:05:30 IN 5 John
01.12.09 14:30:58 out 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 11:54:20 IN 5 Mary
01.12.09 16:29:13 out 5 Mary
01.12.09 16:34:29 out 5 Mary
02.12.09....
03.12.09....

This is an example for one day (01.12.2009). All days are consecutive.
I need the macro to look first at the "Date", then at "Name", then at the
"Station", then at "Time". I need the smallest "IN" time and the biggest
"out" time.

Result after macro:
01.12.09 08:01:19 IN 5 John
01.12.09 16:30:19 out 5 John
01.12.09 07:59:23 IN 5 Mary
01.12.09 16:34:29 out 5 Mary

Can this be done?
Thanks!
 
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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
using a cell value to control a counter inside a macro and displaying macro value ocset Excel Worksheet Functions 1 September 10th 06 05:32 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Excel Discussion (Misc queries) 1 June 11th 05 12:44 AM


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