Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Deleting a row if closing date elapsed

Hello

I want to delete a row if the closing date shown in one column of that row
is equal to, or before today's date.

Can anyone offer the correct conditional format, or is it a job for a Macro?

Not very well up on Macros, so please treat me as a numbskull!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Deleting a row if closing date elapsed

One way is to use autofilter ..

Try this on a spare copy:
Autofilter on the dates col, choose "Custom"
In the dialog, select: less than or equal to,
then type in today's date into the box, eg: 4/27/2007 (key in the full date)
Click OK. This should filter out all rows to be deleted. Simply select all
the filtered row headers, right-click Delete Row.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


"bollard" wrote:

Hello

I want to delete a row if the closing date shown in one column of that row
is equal to, or before today's date.

Can anyone offer the correct conditional format, or is it a job for a Macro?

Not very well up on Macros, so please treat me as a numbskull!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default Deleting a row if closing date elapsed

Hi Max

I really want the row to delete automatically once we reach the closing
date. Can you help with that, please?

"Max" wrote:

One way is to use autofilter ..

Try this on a spare copy:
Autofilter on the dates col, choose "Custom"
In the dialog, select: less than or equal to,
then type in today's date into the box, eg: 4/27/2007 (key in the full date)
Click OK. This should filter out all rows to be deleted. Simply select all
the filtered row headers, right-click Delete Row.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


"bollard" wrote:

Hello

I want to delete a row if the closing date shown in one column of that row
is equal to, or before today's date.

Can anyone offer the correct conditional format, or is it a job for a Macro?

Not very well up on Macros, so please treat me as a numbskull!!!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Deleting a row if closing date elapsed

Welcome back <g ..

One way to achieve it, which extracts only the current cases in a new sheet
....

Source data is assumed input continuously in a sheet: X,
within cols A to D, data from row2 down,
where the key col = col A (real dates)

In a new sheet: Current Cases,
Copy n paste the same col labels in X into B1:E1

Put in A2:
=IF(X!A2="","",IF(X!A2<=TODAY(),"",ROW()))
Leave A1 blank

Put in B2:
=IF(ROW(A1)COUNT($A:$A),"",INDEX(X!A:A,SMALL($A:$ A,ROW(A1))))

Copy B2 across to E2. Select A2:E2, fill down to cover the max expected
extent of source data in X, eg down to E200. Format col B as date. The above
will auto-return the required results, ie only the source lines from X with
dates today (ie the current/unexpired cases), with all lines neatly bunched
at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"bollard" wrote:
Hi Max

I really want the row to delete automatically once we reach the closing
date. Can you help with that, please?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Deleting a row if closing date elapsed

A sample construct for the earlier suggestion is available at:
http://www.savefile.com/files/762606
Copy current unexpired rows to new sheet.xls
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
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
Deleting a row when closing date passes. bollard Excel Discussion (Misc queries) 1 March 29th 07 01:18 PM
Tracking Date/Actual Working Time Elapsed Jive Excel Worksheet Functions 1 September 25th 06 02:14 PM
Calculate Elapsed Date and Time Gary F Shelton Excel Worksheet Functions 3 May 12th 06 03:58 AM
Can this even be done? Tracking Date / Time Elapsed scd New Users to Excel 6 February 3rd 06 07:44 PM
Do when a time and date has elapsed Michael Excel Discussion (Misc queries) 3 April 24th 05 10:46 PM


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