ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Date criteria in query (https://www.excelbanter.com/excel-programming/358120-date-criteria-query.html)

[email protected]

Date criteria in query
 
What would the syntax be in the "Value" line of a field if I wanted
only the most recent seven days to appear in the results?

Thank you.


Jim May

Date criteria in query
 
Are you working with the Advanced FIlter Tool?
If so, then set your criteria as follows:

example in Cells Z1:Z2

Z1= CriteriaHeader
Z2= = " & today() - 7"

Give that a go..
HTH


" wrote:

What would the syntax be in the "Value" line of a field if I wanted
only the most recent seven days to appear in the results?

Thank you.




All times are GMT +1. The time now is 01:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com