Solved

excel move automatically expired dates (row) to second sheet

Posted on 2013-01-24
7
1,832 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

821 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