Data Validation to only include certain date dependant rows from a dataset

OobuJoobu

New Member
Joined
Sep 12, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

using my example screenshot, I need to create Data Validation to show a list only of those items in column P where the date in column Q is today or in the future. So in this example I would only want to see the column P items numbered 5,7 and 8 as they're future dates (based on today's date as I type of 12th September)

I would need this to be dynamic, so that when we hit 21st September, the item numbered 5 would no longer appear in the dropdown, and also dynamic so that when new items are added to this list that happen to have a future date, they will be picked up in the data validation dropdown.

I'm not even sure if this is possible, any advice please? If it's not possible as regular Data Validation then I will instead write some VBA that will do this on a the press of a button by the users, but would prefer to avoid that if possible.

Thanks :)
 

Attachments

  • Capture.PNG
    Capture.PNG
    8.2 KB · Views: 7

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the MrExcel board!

See if this would be any use.
Make that table of data into a formal Excel table. Look on the Insert ribbon tab - Table

Use a formula like I have in S4 and then Data Validation as shown in cell U4

OobuJoobu.xlsm
PQRSTU
1
2
3PlaceDateDV ListChoose Place
4London 0101 April 2023Glasgow 01
5leeds 0123 May 2023London 03
6Norwich 0110 August 2023Norwich 02
7London 0201 September 2023
8Glasgow 0120 September 2023
9Leeds 0202 September 2023
10London 0301 October 2023
11Norwich 0201 November 2023
12
13
Sheet1
Cell Formulas
RangeFormula
S4:S6S4=FILTER(Table1[Place],Table1[Date]>=TODAY(),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
U4List=S$4#


Here is what you see in the U4 DV drop-down.

1694517799052.png
 
Upvote 0
Solution
Welcome to the MrExcel board!

See if this would be any use.
Make that table of data into a formal Excel table. Look on the Insert ribbon tab - Table

Use a formula like I have in S4 and then Data Validation as shown in cell U4

OobuJoobu.xlsm
PQRSTU
1
2
3PlaceDateDV ListChoose Place
4London 0101 April 2023Glasgow 01
5leeds 0123 May 2023London 03
6Norwich 0110 August 2023Norwich 02
7London 0201 September 2023
8Glasgow 0120 September 2023
9Leeds 0202 September 2023
10London 0301 October 2023
11Norwich 0201 November 2023
12
13
Sheet1
Cell Formulas
RangeFormula
S4:S6S4=FILTER(Table1[Place],Table1[Date]>=TODAY(),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
U4List=S$4#


Here is what you see in the U4 DV drop-down.

View attachment 98596

Genius, works perfectly, thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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