Find all entries with specific month

zxmod51

New Member
Joined
Jul 27, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello guys,

how can i find all records within a specific month? I have a Sheet with orders, where every order has a finishdate in column "H" from type Date.
I want to find now all orders, which are finished in month february for example and sum up a value which is located in column "L".
Is there a way with .find() and .findNext()? I could not find the entries, when i used find(what=CDate("02.2020")), it returned all dates
like 02.01.2020, 02.06.2020 and not the dates which are in february 2020.
I am relative new to excel vba.
ExamplePic.PNG



Thanks guys!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi zxmod51, you don't really need vba for this, you can filter by date with a filter dropdown.
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,394
Members
449,222
Latest member
taner zz

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