ranking data in excel without skipping values - excel

i found this formula : =COUNTIF(D$2:D$60000,">"&D2)+1 that gives me ranking of some data but it skips values like in the picture
is there any solution to solve this problem like to have a normal ranking without skiping values , thanks

This array formula will do it:
=SUM(IF((D$2:D$60000>D30)*(D$2:D$60000<>""),(1/(COUNTIF(D$2:D$60000,D$2:D$60000)))*(D$2:D$60000>D30)))+1
Being an array formula it needs to be entered with Ctrl-Shift-Enter when leaving edit mode. If done correctly Excel will put {} around the formula.

Related

How to find the first value in a column larger than the previous value in the column

I'm looking for an excel formula to return the index of the first value in a large column such that ABS((COL)(ROW)-(COL)(ROW+2))< 0.1
Clearly, this is pretty easy to program in VBA by starting with the first row in the column and iterating through. However, I'm just looking for an excel formula in this case.
I think it will need to be something functionally like:
=INDEX($A$1:$A$100,MATCH(TRUE,($A$1:$A$100)-($A$3:$A$102)<.1,0))
This clearly won't return anything. I'm interested in how to do that subtraction part using excel formulas.
Thanks!
Just need to add the ABS and ARRAY ENTER the formula:
=INDEX($A$1:$A$100,MATCH(TRUE,ABS(($A$1:$A$100)-($A$3:$A$102))<.1,0))
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula.

Duplicates and sorting

My table updated
See if this picture of my table helps understand what I am trying to do. Thank you. B1 is where I am trying to return the column C count. I do have some duplicates in column B (as mentioned with previous table).
Use this array formulas to count the uniques:
=SUM(IF(B1:B8=0.5,1/COUNTIFS(A1:A8,A1:A8,B1:B8,0.5)))
Being an array formula it must be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula.

excel one to many look up

I would like to use a lookup formula to bring back multiple values. For example when it finds more than value in a look up I would like excel to add each value in the adjacent columns.
Can anyone help?
see attached
You can use this array formula:
=IFERROR(INDEX($B$2:$B$13,MATCH(1,($A$2:$A$13=$H$2)*(COUNTIF($H$2:H$2,$B$2:$B$13)=0),0)),"")
Being an array formula, put it in the first cell then hit Ctrl-Shift-Enter instead of enter when exiting edit mode. If done correctly then Excel will put {} around the formula.
Then copy/drag across enough columns till you get blanks.
You can also use this formula :
=IFERROR(INDEX($B$2:$B$13,SMALL(IF($H2=$A$2:$A$13,ROW($A$2:$A$13)-ROW($A$2)+1),COLUMN(A2))),"")
As this is also an array formula, press Ctrl+Shift+Enter while entering the formula.

How to perform column to row operations in excel

Check out the selection in the top right, columns "Purchase/Sale" and "NOI".
I'd like to add these two columns and insert the sum for each period in their respective space. Is there I can link the sum of the columns and add the sum to the row?
In other words, I'd like the cells to link so I would have the following result:
Thank you
Use this array form of VLOOKUP wrapped in SUM():
=SUM(VLOOKUP("CF" & G1,$A$2:$C$7,{2,3},FALSE))
Being an array formula it needs to be confirmed with Ctrl-Shift-Enter when exiting edit mode instead of Enter. If done correctly then Excel will put {} around the formula.

Search for multiple values on two rows on multiple columns Excel

I have the next table (the table has this format),
Excel table
I wanto to search for all the 9's on the row 3 and obtain all the dates on columns A to T for each 9.
In my example the result should be,
29-06-2016
30-06-2016
01-07-2016
02-07-2016
04-07-2016
05-07-2016
06-07-2016
07-07-2016
08-07-2016
09-07-2016
I've tried the index/small formula but the result is only the first date.
Can anyone help me?
The array formula in the first cell:
=INDEX($A$1:$T$1,SMALL(IF($A$3:$T$3=$V$3,COLUMN($A$3:$T$3)),ROW(1:1)))
Being an Array formula it needs to be confirmed with Ctrl-Shift-Enter instead of Enter when exiting edit mode. If done correctly then excel will put {} around the formula.

Resources