SORTBY Formula

Copper Contributor

Hi,

I'm looking to add a SORTBY function to an existing FILTER formula. 

 

The current formula I have to drag the below information from the main table is the following;

 

=FILTER(Table2[#All],Table2[[#All],[Tender Completed?]]="No",).

 

I want to add to this formula to make sure that in the 'Date Received' Column, the earliest dates are at the top.

 

Any help would be greatly appreciated!

 

Tender NumberClientProject TitleDate ReceivedReturn DateDays Allowed to Price
SGS2Example Company 2Example Job 221/10/202330/10/20239
SGS3Example Company 3Example Job 319/10/202324/10/20235
SGS4Example Company 4Example Job 319/10/202324/10/20235
SGS5Example Company 5Example Job 319/10/202324/10/20235
SGS6Example Company 6Example Job 319/10/202324/10/20235
SGS7Example Company 7Example Job 319/10/202324/10/20235

 

4 Replies

@Callumc123 

I'd use a separate row to return the headers:

 

=Table2[#Headers]

 

In the cell below the cell with that formula:

 

=SORT(FILTER(Table2,Table2[Tender Completed?]="No",), 4)

@Callumc123 

Or, in one formula:

 

=VSTACK(Table2[#Headers],SORT(FILTER(Table2,Table2[Tender Completed?]="No",), 4))

@Hans Vogelaar  Thanks so much! for some reason its not liking me trying to turn the 'Outstanding Tenders' table into the same formatted table as the 'Tender Register' do you know a way around this?

 

 

@Callumc123 

Unfortunately, you cannot use a dynamic array formula in a table. Such a formula will return a variable number of rows, but a table cannot spontaneously resize itself to accommodate that.