Unique Data Validation without Unique Formula (2016 Excel)

Glasgowsmile

Active Member
Joined
Apr 14, 2018
Messages
280
Office Version
  1. 365
Platform
  1. Windows
I have this formula in a newer version of Excel report and it works great. It goes through every day in column C (formatted like such: mm/dd/yyyy) and gives me back the MMMM YYYY value which I use in data validation to display each month for a drop-down list.
Excel Formula:
=UNIQUE(TEXT($C$14:$C$377, "MMMM YYYY"))
Data validation formula:
Excel Formula:
=OFFSET(DateRanges,0,0,COUNTA(DateRanges),1)

The problem is... I don't know how to create the same data validation list without this unique formula so that it works on older versions of excel.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
For the moment, I have assumed that your dates in column C are in ascending order.
If so, see if you could adapt this column E approach (column D is just for comparison using the UNIQUE function)

For the future I suggest that you investigate XL2BB for providing sample data (& expected results) to make it easier for helpers by not having to manually type out sample data to test with.


23 08 17.xlsm
CDE
1413/03/2019March 2019March 2019
155/04/2019April 2019April 2019
168/04/2019May 2019May 2019
177/05/2019June 2019June 2019
1825/06/2019July 2019July 2019
1920/07/2019September 2019September 2019
208/09/2019October 2019October 2019
2121/10/2019November 2019November 2019
2222/11/2019December 2019December 2019
2329/11/2019August 2020August 2020
241/12/2019September 2020September 2020
259/08/2020October 2020October 2020
2619/08/2020November 2020November 2020
271/09/2020February 2021February 2021
288/09/2020April 2021April 2021
2913/09/2020May 2021May 2021
3030/09/2020June 2021June 2021
317/10/2020July 2021July 2021
329/10/2020September 2021September 2021
335/11/2020October 2021October 2021
3419/02/2021November 2021November 2021
353/04/2021March 2022March 2022
364/05/2021April 2022April 2022
376/05/2021August 2022August 2022
3813/06/2021November 2022November 2022
3916/07/2021 
408/09/2021 
413/10/2021 
4218/11/2021 
4313/03/2022 
443/04/2022 
4512/08/2022 
4630/11/2022 
Unique dates
Cell Formulas
RangeFormula
D14:D38D14=UNIQUE(TEXT($C$14:$C$46, "MMMM YYYY"))
E14:E46E14=IFERROR(TEXT(AGGREGATE(15,6,C$14:C$46/ISNA(MATCH(TEXT(C$14:C$46,"MMMM YYYY"),E$13:E13,0)),1),"MMMM YYYY"),"")
Dynamic array formulas.


If the named range DateRanges was E14:E46 in my sample sheet, then your DV formula would change slightly to
Excel Formula:
=OFFSET(DateRanges,0,0,COUNTIF(DateRanges,"?*"),1)
 
Upvote 0

Forum statistics

Threads
1,215,135
Messages
6,123,241
Members
449,093
Latest member
Vincent Khandagale

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