Date filter based on another cell

feni1388

Board Regular
Joined
Feb 19, 2018
Messages
127
Office Version
  1. 2021
Platform
  1. Windows
Hello....

I have this table below and I need to filter it (column K) based on column M using below code, but it didn't work.
Can someone please help me? I don't know which part of the code is wrong.

Thank you in advance.

VBA Code:
ActiveSheet.Range("$A$1:$Y$501").AutoFilter Field:=11, Criteria1:=Cells(i, 13)


Book1
ABCDEFGHIJKLMN
1Sales DateInv. DateCust. CodeOrder No.ItemCtnDelivery codeCustomer NamePhone noPIC codeActual deliveryActual deliveryFileName
22024/8/62024/8/6ARA2500000640200BM922ARA05001MIT03-1234-56781082024/8/62024/8/620240806
32024/8/62024/8/6ARA2500000000004BM923ARA05001MIT03-1234-56781082024/8/62024/8/720240807
42024/8/62024/8/6ARA2500000000004BM921ARA05001MIT03-1234-56781082024/8/6
52024/8/62024/8/6ARA2500000000004BM921ARA05001MIT03-1234-56781082024/8/6
62024/8/72024/8/7ARA2500000000011BM921ARA05001MIT03-1234-56781082024/8/7
72024/8/72024/8/7ARA2500000000011BM921ARA05001MIT03-1234-56781082024/8/7
82024/8/72024/8/7ARA2500000000011BM921ARA05001MIT03-1234-56781082024/8/7
Sheet1
Cell Formulas
RangeFormula
N2:N3N2=TEXT(M2,"yyyymmdd")
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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