Solved

excel move automatically expired dates (row) to second sheet

Posted on 2013-01-24
7
1,733 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

785 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