How to set array of step values - nouislider

For example. We have range of clothes size 64,76,82,95, and We want what user can choose only these values.
Can We set step by array?
step: [64,76,82,95]

This can be done using the snap option. Have a look at snapping between steps in the documentation.

Related

Create a manual data validation list in Excel

I want to make a very simple manual dropdown list in a cell with the values Yes or No.
I do not want to select a range of possibilities for only 2 options. So I want to enter the possible values manually.
It is my understanding according to these articles (link1, link2), that I can do so by going to a cell, going to data > data validation. Select List from the allow dropdown and then in the source field enter my dropdown entries manually (comma seperated).
However, if I do so, I get this:
So, I get only 1 option Yes,No instead of 2 options with Yes or No. What am I doing wrong? I tried seperating them with a comma and a space aswell. Didn't work.
In source, write this Yes;No instead of Yes,No
first:
Control panel--> Region-->Formats Tab-->Additional settings--> Numbers Tab-->List separator value change to: ,(comma) then ok.ok

I need to sort an array in excel following the order of another one

Hello everyone and thanks a lot in advance for any help.
I'm not very good using Excel. I want to know if there is a simple way in which I can sort a small two-column data matrix following the order of a column that contains all the bird species in Colombia. I study birds and I usually do avifauna characterization studies. I've always had this problem of not being able to order efficiently using the taxonomic order of species. I have always done it by hand and it takes me a really long time.
This is the file with the example that ilustrates my problem: https://docs.google.com/spreadsheets/d/1089VD4ylJiW9Xw9xRFI0ehraAc_t-qSa/edit?usp=sharing&ouid=112790797352647984659&rtpof=true&sd=true
There are two worksheets in this file. One called "Species" and the other "Data". I need to know if it is possible to make Data array can be sorted following the Species column.
I have tried creating custom lists and the number of entries to create a certain order does not allow me to put more than 100. I have also tried using commands Sort and Sortby without any success.
Again, thanks a lot for any help.
Regrets.
On the Data worksheet, add a helper column:
C2: =MATCH(A2,Species!$A$1:$A$2000,0)
and fill down.
Then Sort by the helper column

Application of a custom function to generate iterations across a distance range

Bit of a complex query but I will try to articulate it as best I can:
Essentially I have a list of objects for which I am trying to work out the probability of said items hitting particular points below on the seabed having been dropped at the surface. So there are two steps I need guidance on:
I need to define a custom function, ERF(a,b), where I need to refer to specified values dependent on the Item Number (see in the column names) in order to then use them as multipliers:
These multipliers can be found in a dictionary, Lat_Dev (note please ignore the dataframe column reference as this was a previous attempt at coding a solution, info is now found in a dictionary format).
The function then needs to be repeated for set iterations between a & b with the step size defined as 0.1m. This range is from 0-100m. a is the lower limit and b the upper limit (e.g. a = 0.1m & b = 0.2m). This is done for each column (i.e. Item_Num).
Hopefully the above is clear enough. Cheers,

Sort and find Top and Bottom 5 values and their corresponding names

I know this is not the first time someone is asking a similar question, but me trying to execute what I found out in other answers is not working exactly as how I want it to be. I hope someone here could help me.
I got four columns, the first one is the Product Name, and the last one is its P/L%. I want to sort out top and bottom 5 P/L% value along with their corresponding Product Name. I am attaching the screenshot of a sample scenario in case if you couldn't understand what I explained.
I tried the (sort(filter)) method as found somewhere else, but it actually messed up with the second and third columns. I hope someone here can give me some simple ways.
My solution considers the case when multiple products has same value in P/L% and I use a Table object for displayed data.
Formulas to use
Top 5 Gainers values
=LARGE(ProductTable[P/L%]; ROWS($H$3:H3)), and copy down
Top 5 Gainer values
Top 5 Gainers products name
=INDEX(ProductTable[Product Name];AGGREGATE(14;6;(ROW(ProductTable[P/L%])-ROW(D$2)+1)/(ProductTable[P/L%]=H3);COUNTIF($H$3:H3;H3))), and copy down
Top 5 Gainers products name
Top 5 Loosers values
=SMALL(ProductTable[P/L%];ROWS($H$3:H3)), and copy down
Top 5 Loosers values
Top 5 Loosers products name
=INDEX(ProductTable[Product Name];AGGREGATE(14;6;(ROW(ProductTable[P/L%])-ROW(D$2)+1)/(ProductTable[P/L%]=K3);COUNTIF($K$3:K3;K3))), and copy down
Top 5 Loosers products name
Short Explanation
You must use LARGE and SMALL functions when you want to get the largest or the smallest value in a data array.
AGGREGATE function is a little bit complex to explain here so I recommend you this link to understand better. Basically, I use this formula to get the row of the gainer or looser product name into INDEX function.
ROWS($H$3:H3) returns 1, but when you copy down this formula, you get 2, 3, and so on. This is a nice way to expand the query if you need more than top 5 values.
Similar problem in:
https://www.excelforum.com/excel-formulas-and-functions/1208726-index-match-large-and-duplicates.html

how to make excel choose between a set of values based on conditions

I need help with excel with regards to choosing a set of value in terms of availability and priority.
For example, Part A has these 4 available parameters (TSO,TSR, TST ,TSN) however, not all parameters are available. The priority function is like TSO > TSR > TST > TSN
The method i am using now is very inefficient as i create a lot of extra columns and comparing with =if. In essence, its ugly,time wasting and not 100% foolproof.
Therefore, i am trying to see if there are any sets of excel function to effectively do this. The first priority value to use is TSO (if value is displayed) but if it is not available (blank) i would move to see TSR. If it is blank i would move to see TST, so on and so forth until the last choice TSN.
I have attached a picture to give you guys a clearer picture
Example of how it looks like for a clearer visualisation
I suggest to use the VLOOKUP() function where you can pull any value of your preference using a unique id. So you can use TSO, TSR, TST,and TSN as your IDs.
EXAMPLE
=IF(OR(AND(Sheet2!B1<>"",A1="TSO"),AND(Sheet2!B1<>"",A1="TSR"),AND(Sheet2!B1<>"",A1="TST"),AND(Sheet2!B1<>"",A1="TSN")),VLOOKUP(A1,DATA1,1,FALSE),"")
You may share a screen shot of your sample excel template so that i work on immediately

Resources