LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Max
 
Posts: n/a
Default

"Markitos" wrote
.. was wondering if their is a way to transfer the
date to another worksheet within a workbox
if the exp date is expired. Also would it be possible
to make it so the their will be no spaces left blank
(condense to fill in top-bottem) ..


Give this a play ..

Assume you have in Sheet1, cols A to C
data from row2 down

Date Field1 Field2
31-Oct-04 Data1 Data2
01-Nov-04 Data1 Data2
02-Nov-04 Data1 Data2
03-Nov-04 Data1 Data2
04-Nov-04 Data1 Data2
05-Nov-04 Data1 Data2
06-Nov-04 Data1 Data2
etc

Using an empty col to the right of the data, say, col E

Put in E2: =IF(A2="","",IF(A2<TODAY(),ROW(),""))
Copy down as many rows as data is expected in cols A to C

In a new Sheet2
----------------------
With the same col headers in A1:C1, viz:
Date Field1 Field2

Put in A2:

=IF(ISERROR(MATCH(SMALL(Sheet1!$E:$E,ROW(A1)),Shee t1!$E:$E,0)),"",OFFSET(She
et1!$A$1,MATCH(SMALL(Sheet1!$E:$E,ROW(A1)),Sheet1! $E:$E,0)-1,COLUMN(A1)-1))

Copy A2 across to C2, fill down by as many rows
as was done in col E of Sheet1

Format col A as dates

Sheet2 will extract only* the rows from Sheet1
where the dates in col A have since expired,
i.e. < TODAY() [as per formula in col E of Sheet1]
*and without any blank rows in-between

For the sample data in Sheet1,
it'll show** in Sheet2 as:

Date Field1 Field2
31-Oct-04 Data1 Data2
01-Nov-04 Data1 Data2

**"Today" is : 2-Nov-2004 over here
--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----




 
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
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Can I use TODAY Function in formula without it changing the next . Tucson Guy Excel Discussion (Misc queries) 1 December 19th 04 09:47 AM
Can I use TODAY Function in a formula that will not change it the. Tucson Guy Excel Discussion (Misc queries) 1 December 19th 04 09:32 AM
Function / formula to be used if cell contains a letter. Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 12:12 AM


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