Please Help - Criteria wording - Three (3) date ranges in for advance filter.

joach

New Member
Joined
Jul 15, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm wanting to use advance filters to filter my data set.

I am wanting to follow up with the customer 8 months, 20 months and 56 months after the purchase date, but if the date is equal to or more than 12, 24 and 60 months from the purchase date I don't want to see the data in the new sheet.

In written terms I want to see the following data however I don't know how to type it in an Excel format / formulas.

follow up
1 year if todays date is between 8 months and 12 months from the purchase date
2 yearif todays date is between 20 months and 24 months from the purchase date
5 yearif todays date is between 56 months and 60 months from the purchase date

Could you please help me with the formatting / formulas for the above criteria.

In addition to this once the filtered data is on the new sheet 'follow up' I want to use conditional formatting with a colour gradient to show the following - green being the lower number (i.e 8 months), yellow being the mid point (i.e 10 months) and red being the deadline (i.e 12months).

If you could please help with the above that would be amazing.

If you need anything else please let me know.
 
I can't get exactly what you want see if this is close enough.
If this doesn't work for you, you might need to put it out there as a separate thread.

20220720 VBA Follow up Purchase Date Anniv joach v04.xlsm
ABCDEFGHIJKLM
1Order NumberAddressStreetSuburbDescriptionEstimated costLodged dateCustomer nameCSOpurchase typePurchase dateYear Frac Check Column
22BBXXXXXX100xx/xx/xxXXXXYYYYYpaypal20/09/201710.2
3133debit card31/07/202111.86666667
4100debit card20/08/202111.2
5101debit card20/09/202110.2
6102debit card26/10/20219
7103debit card20/11/20218.2
Follow Up 12 21 57 Months
Cell Formulas
RangeFormula
M2:M7M2=MOD(YEARFRAC(K2,TODAY()),1)*12
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K2:K7Expression=(MOD(YEARFRAC($K2,TODAY()),1)*12)>11textYES
K2:K7Expression=(MOD(YEARFRAC($K2,TODAY()),1)*12)>9textYES
K2:K7Expression=(MOD(YEARFRAC($K2,TODAY()),1)*12)<=9textYES
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top