Ranking a column sourced from another column - excel-formula

I would like to display values in a column in ascending order without altering the order of the original column. For this I created a new column and populated it with the values from the original column. Original values change often, so I would like to use a formula and not "paste special". The setup is as follows:
How could I sensibly ranke the values in "Ranked RoR%" in ascending order? When I use sort they immediately revert to their original values, since they are sourced from the column RoR%. Thanks for any ideas!

Try this:
=SMALL(A:A,ROW(1:1))
This will display the smallest value in column A. If you drag down the formula it'll change ROW(1:1) to ROW(2:2) and so on displaying the N-th smallest value regardless of the order in column A. At the end you should have the values of column A in an ascending order.

Related

Lotus View Sorting According to Numeric Values

I created a categorized view which sorted according to "Text" Values. The first column has Text Value. But second Column has numeric values. there is also Total Column at the end.
What i would like to do is to sort according to Numeric values(It can be Total Column) from Biggest one to smallest one... is it possible to sort
You cannot sort on the totals of a category.
You can only sort on data of documents itself.
You need to put the sorted column left of the categorized column. Therefor you add another column with the same value as the "Miktar" column as the first column of your view and make it sorted. After that you hide that column as it otherwise would look stupid.

Subtract one cell from the cell above in Spotfire using multiple columns

How would I create a calculated column that would find the thickness of a cell that is the difference from one cell with the cell above it, but want to do this for many individual wells that have unique identifiers in a column. Additional, the last cell of that well will not have a value because there is not cell below it. On top of that I would like to play with the option of calculating this from deepest to shallowest, or shallowest to deepest so c in a column, and organized by ranking scheme (ascending or descending).
See image attached
Use a calculated column with an OVER statement (provided you're not using an in-database data connection). It will look like this:
Sum([Depth]) OVER Intersect([Well],Next([Depth])) - [Depth]
It will return the same result regardless of the row order because the Next function has built-in alphanumeric sorting which it performs on [Depth].

Excel Countif with the first count only

I am using CountIf to find the number of duplicate values in a column. First I sorted the values in ascending order. Then I apply =COUNTIF(B:B;B2) and dragged it till end. The Results are as:
However, I don't want the values multiple times in the column C. Just need it for one time. Also is it possible without sorting the column B in ascending order?
Try this,
=if(countif(b$2:b2, b2)=1, countif(b:b, b2), text(,))
Fill down. The data does not require sorting.

Return last date something was entered into one column with criteria from another column

I'm working with a set of data in excel. Data is entered into rows for items specified in columns. The first column contains a date. A cell in the same row of one of the columns contains the name of a person and in another cell in the same row but different column may contain a number larger than zero (or it may be empty).
I need to create a formula which returns the date when a number larger than zero was last entered into that column for a specific name. This is a "living list" which keeps on growing and the same names appear in different rows, sometimes with a number in the column a mentioned and sometimes not.
I found an old thread on this site on a similar subject which got me as far as knowing the date of the last entry containing the persons name but I'm still not able to configure it to show me when that specific person also had a number larger than zero in that column.
Here's the thread: How to get the newest value from a column with conditions
My current formula looks like this:
=INDEX($A:$A,MATCH(MAX(IF($G:$G=Sheet7!C5,$A:$A,0)),IF($G:$G=Sheet7!C5,$A:$A,"")))
CTRL+SHIFT+ENTER
Column A contains the dates
Column G contains the names (and "Sheet7!C5" is a reference to a name)
The value column I need to add to the mix is column AY
I feel there must be a simple solution (a small add on to the formula) to solve this but I always end up with an error.
Thanks in advance :)
Edit: Here is a simplified example of the data entry and output list needed.
For this you need to sort the date DESCENDING and format the table as Excel Table
Edit: you can sort the date ascending. See explanation at the end.
Using your example, then the formula will be
=INDEX(TableData[Activity A], MATCH($B14, TableData[Employee initials], 0))
This works just like the usual VLOOKUP or INDEX MATCH, fetching the first date on an activity matching the employee initials.
You can use VLOOKUP, but you'll need to dynamically name the range of each columns.
Edit: Just today I found an interesting behavior of MATCH when it found multiple matching values. If you use 1 instead of 0, then it will fetch the last matching value on the list.
So, you can use this formula instead in ASCENDING table.
=INDEX(TableData[Activity A], MATCH($B14, TableData[Employee initials], 1))

Generate a 3rd column sequential number based on two columns data

I apologize if the title is misleading, but
I have an issue where I need to generate a sequential number in a third column based on comparing data from two different columns.
My data looks like this:
Before
The entry with the 1 is the first point, I need to use the value in the 'Back' column to find the same value in the 'Front' Column, then add +1 to the point, so the result looks like:
After
Because of the naming conventions used, sorting either column by value will not work.
Appreciate the help!
Assuming you have the initial 1, and your number column is C, front is D, back is E, this would start at row 2:
=INDEX(C:C,MATCH(INDEX(D:D,MATCH(D2,E:E,0),1),D:D,0),1)+1
Image: http://i.imgur.com/0XfdLrk.png
Did you establish whether your data has duplicates or incomplete sequences?
Here's another formula which should achieve what you want and also doesn't rely on you knowing where the sequence starts. Every sequence will start with 1.
This formula follows your image layout, putting values into column A with data in columns B and C. Please replace the ranges in the formula for columns A and C to cover all of your data. (Ideally, you would do this by inserting a table first and then selecting the data rows, which will cause Excel to put in the table column name instead.)
This is the formula to go into cell A2, assuming you have data in B2:C7
=IF(ISERROR(MATCH(B2,$C$2:$C$7,0)),1,INDEX($A$2:$A$7,MATCH(B2,$C$2:$C$7,0))+1)
Put this formula in D2 and fill down to identify which rows are the ends of sequences:
=ISERROR(MATCH(C2,$B$2:$B$7,0))
Put this formula in E2 and fill down to identify duplicates in the Front column:
=COUNTIF(B$2:B$7,B2)
You can then fill it right one column to also identify duplicates in Back.

Resources