Extracting Records Between Dates

omagoodness

Board Regular
Joined
Apr 17, 2016
Messages
64
I am extracting records between 2 dates in a table. I also have a cell to count the number of records being extracted. Although this information is not crucial, I am using this for a quick cross reference to the physical receipts. Refer to the attached image. The formulas in the extraction cells are accurately extracting the data hoever the formula in the count cell ("M2") is counting the records for the previous month (in this case June). If I change the dates to 01-06-2023 to 30-06-2023, the extracted data is correct for June and the count of records is 1, as it should be for July. I have changed the date format in the cells to every option in the list but none made a difference. I simply cannot determine the error. I used this formula in other workbooks without any problem. Can anyone help?
 

Attachments

  • ExcelCapture.JPG
    ExcelCapture.JPG
    145.4 KB · Views: 11

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Sorry folks. I found the problem. I needed to remove the = sign before the K1 reference and just subtract all records less that that date.
 
Upvote 0
Solution

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

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