Usign the =sort function in a Dynamic Array to sort by Month

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
185
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I have a dynamic array that is pulling month (i.e. Jan, Feb, Mar, etc.) from a table. I need to be able to sort the dynamic array so the month's align correctly (i.e. Jan, Feb, Mar, Apr, etc.) in the Data Validation dropdown field automatically.

My formula for the array is =Unique(LOA[Month]) and I know I can use the =sort formula around it but I cannot make it sort properly. I have created a helper table listed below to try and help the formula but it still just gives me #VALUE.

MonthMonth #
Jan
1​
Feb
2​
Mar
3​
Apr
4​
May
5​
Jun
6​
Jul
7​
Aug
8​
Sep
9​
Oct
10​
Nov
11​
Dec
12​
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
How about
Excel Formula:
=UNIQUE(SORTBY(LOA[Month],MONTH("1/"&LOA[Month]))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,181
Members
452,615
Latest member
bogeys2birdies

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