Using Index to retrieve record numbers but need list descending.

angusn

New Member
Joined
Jan 20, 2011
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have a main table which is populated from a form when filled out. It generates a record number when transferring and grabs the next number in ascending order.

I have a separate list I am trying, but can't figure out how, to get to populate in descending order. The current INDEX formula I cobbled together gives what I'm looking for but in ascending order. I would like to see the list populate with the highest record number to lowest which is based on a given criteria (how many days it took to complete a task) in another cell. Below is what I have. I tried putting SORT in there but if it is an option, I can't seem to get it to work.

=IFERROR(INDEX(RecordNo,SMALL(IF(DaysToCompleteDB=$L$37,ROW(RecordNo)),ROW(1:1))-1,1),"")

Thank you.
Angus
 

Attachments

  • The List.jpg
    The List.jpg
    64.8 KB · Views: 4

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks. It's been a while since I've been here but I have updated my details so it should show Office 365 on Windows (10).
 
Upvote 0
Thanks for that (y).

How about
Excel Formula:
=SORT(FILTER(RecordNo,DaysToCompleteDB=$L$37),,-1)
This needs to go in a normal range, NOT in a Table.
 
Upvote 0
Thank you Fluff that worked great, looks like I was over thinking it.

One other thing if I may, I'm looking at this and in time I will have more entries than rows. Is it possible to put a cap on it for 48 rows?
 

Attachments

  • The List 2.jpg
    The List 2.jpg
    91.6 KB · Views: 3
Upvote 0
How about
Excel Formula:
=TAKE(SORT(FILTER(RecordNo,DaysToCompleteDB=$L$37),,-1),48)
 
Upvote 1
Solution
That looks like it, thank you again fluff. First time I've seen "TAKE" so I'll have to read about that one.

I'll drink a beer and watch a rugby game as thanks.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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