Sorting A Column In Specific Ways - react-virtualized

Is there a way to pass in a sort function to the table, so you can control how it is sort. I don't like that it magically thinks it knows what's the best way to sort it for you. I am looking for a similar functionality like how you call sort on an array where you can pass in a function and have it return -1, 0 or 1 based on your particular qualifications. Does this package provide that?

Related

How to get the switch() funciton to say more than one value when two values are the same

I don't know if you consider that excel is a valid programming language to ask in there, but I need this for a project.
In the switch() function, I said to compare the max value of those cells to return the one that coincides, but when two values are the same, it returns the one who is first.
=SWITCH(MAX(J3:J7);J3;"Jugador 1";J4;"Jugador 2";J5;"Jugador 3";J6;"Jugador 4";J7;"Jugador 5")
How could I make it to return "Jugador 2, Jugador 3" instead of just one of them?
I don't figure what function can do something like that. I thought of making something like to functions in one but don't know.
Welcome!
There are several different techniques to accomplish this task. One of them is using a combination of TEXTJOIN() and IF() functions in array formula:
{=TEXTJOIN(",";1;IF(J3:J7=MAX(J3:J7);A3:A7;""))}

EXCEL - Lookup a value in an array, return it if it falls into a certain range/bucket

I have 11 ranges/buckets (40-45, 45-50, 50-55 and etc). I have an array of data. I need to look for a value in that array and return it depending whether or not it falls into a particular range/bucket. Please see the attached picture. I have done this task using IF function, but it is not the best way of doing this. Tried to use Index and Match, but I am doing something wrong.
This will return what you show. It will return the first fig for each bucket:
=IFERROR(INDEX($D3:$G3,AGGREGATE(15,7,(COLUMN($D3:$G3)-MIN(COLUMN($D3:$G3))+1)/(($D3:$G3>=I$1)*($D3:$G3<IF(J$1="",100,J$1))),1)),"")

How do I only allow Sorting on a Filtered column?

I'm trying to find out how I can use the filter button to only choose sort functions, otherwise it has a ton of numerical values that are completely irrelevant to select.
All I need is to be able to sort in most columns, but not all. How can I do this?
Here's what I see-
Here's what I want-
Notice how in the first there's a bunch of values that no one cares to see, but in the second there's only the ability to sort the data.
Is this possible?

Single Use List - Excel

I'm after a way of preferably using VLookup to return information and once returned, have the source information unavailable for the same lookup.
e.g. If I have a list of names I have not used in seating for an event, I will want a formula which can look up this information WITHOUT entering the same name more than once. I'd rather not do a drop-down option as requires selecting the entry and I want my whole table to be an self-filling database.
I've about 20 nested IF functions going on in one cell so ideally something that could fit in there easily? Ill take anything honestly :P
Thanks in advance

Excel RANDBETWEEN as a string

How does one use a string value as a random value, I have 3 values namely SMS, Datasynergy and Other, i want to simulate live data by using the random function to assign one of the aforementioned value to my field at random?
The way i thought of it is to make a random value between 1-3 and and then go on to say if 1 = SMS else if 2 = Datasynergy else Other
But im pretty sure there must be other ways of doing this?
Thanks in advance.
try this
=CHOOSE(RANDBETWEEN(1,3),"SMS","Datasynergy","Other")
Another way is to use INDEX, e.g.
=INDEX({"SMS","Datasynergy","Other"},RANDBETWEEN(1,3))
which you can easily adapt for a longer list like this
=INDEX(List,RANDBETWEEN(1,COUNTA(List)))

Resources