Solved

Filtering by date range

Posted on 2012-04-04
3
90 Views
Last Modified: 2013-01-29
Once I strip a ~15MB Excel spreadsheet down to semi-manageable size i am left with data in columns E to O.

Column N contains dates.

I need a macro that would contain both a lower and upper limit date.
When the macro is run it would change all the rows that fall outside the set date limits.

The row being from Ex to Ox

Those rows that fall outside the date limits, their default text color would change to [White, Background 1, Darker 5%]

Any row (Ex to Ox) would stay its automatic color if it falls within the date range and the remaining rows (Ex to Ox) would change to a very lite gray making but not quite invisible.

Thanks in advance for any assistance.
0
Comment
Question by:dgd1212
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
AgeOfEmpires earned 500 total points
ID: 37809330
Have you considered Conditional Formatting?  In Excel 2010 it is quite flexible.  You could create a formatting rule that looks at the dates and applies your format on those dates that fall outside a given range.
0
 

Author Comment

by:dgd1212
ID: 37811781
Conditional formatting is not viable in this case. The macro I'm inquiring about is the first step to a number items, hopefully, that can be done with this worksheet.
Thanks
0
 

Author Comment

by:dgd1212
ID: 37830499
I have attached an example, a PDF file. Contains two screen shots. First is raw data.
Second is the needed result, for example , a date range of May/June. All other dates "not" in that range turn a light gray [White, Background 1, Darker 5%].
Thank you for any assistance.
EE-Example.pdf
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

707 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

17 Experts available now in Live!

Get 1:1 Help Now