Solved

excel move automatically expired dates (row) to second sheet

Posted on 2013-01-24
7
1,653 Views
Last Modified: 2013-05-05
Hi, I'm trying to get rows in my spreadsheet to move to another sheet once the dates expired.   Here is an example row of a date expired.  I want this yanked automatically and place on sheet two.  Can you help?  please...

ALL ABOUT PRESERVATION      12/9/2012      1/18/2013
0
Comment
Question by:snoopaloop
  • 4
  • 3
7 Comments
 
LVL 11

Expert Comment

by:ScriptAddict
ID: 38816483
If you want to get the row to actually move, I think you need to have VBA code involved.

You could create two spreadsheets, and filter them both by  >now() or <now() depending on the sheet.  That might work if now is allowed as a filter.

That could have the effect of making them look like they move.  

-SA
0
 
LVL 11

Expert Comment

by:ScriptAddict
ID: 38816517
Hmmm doesn't look like that will work,  I guess I would use conditional formatting.  

That should be able to color a cell based on the date compared to today, and then just filter the color that has expired instead of based on date.  

If you are using Excel 2010 that should work.  If you have to do it with VBA that is going to be a different approach.
0
 
LVL 1

Author Comment

by:snoopaloop
ID: 38816749
Im not sure what that means can you explain??
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 11

Expert Comment

by:ScriptAddict
ID: 38820068
what version of Excel are you using?
0
 
LVL 1

Author Comment

by:snoopaloop
ID: 38820418
Excel 2010
0
 
LVL 11

Accepted Solution

by:
ScriptAddict earned 500 total points
ID: 38820782
Ok,

Here is how this solution would work.

1) Take your spreadsheet and copy it to a second spreadsheet.  So you get a second tab.

2) Put Auto Filters on both sheets.

3) Select column C (assuming that's where the date you care about is)

4)Select Home>Conditional Formatting > new rule > Use formula to determine what cells to format.

5) Enter something like this =(C1-TODAY())<=0 as the formula.

6) have the rule apply to C:C assuming C is the date column you are interested in.

7) Select a color (I chose the normal highlight color) for items that match.

8) Save the rule and make sure that your dates are entered as dates and not text by re-keying a single one of them if the rule isn't working right.

9)Turn on the filter on both sheets

10)On the first sheet filter by color on the column you are interested in (highlighted color).  And on the second one filter by color on the column but you select no fill.

This gives the illusion that they are moving, but no VBA coding is required.  You'll need to update the second sheet from the first each time you update the worksheet, or periodically, by copying it and setting the filter on the color or no fill.

However it should be functional with no VBA coding required.

-SA
0
 
LVL 1

Author Comment

by:snoopaloop
ID: 38887112
THere's a fix that the other IT consultant used to resolve it.  I would get that info tomorrow.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now