Ranking extra criteria - excel

I came across this formula yesterday and wondered if someone would be able to help expand it for me. This is what I found below:
=COUNTIF($C$1:$C$99,">"&C1)+1+SUMPRODUCT(--($C$1:$C$99=C1),--($B$1:$B$99>B1))
This formula is for 2 sets of criteria, in column C and then B.
Can anyone please help me add a third set of criteria, which would be in column D?

It would be easier to use COUNTIFS in the original formula unless you have a very old version of Excel
=COUNTIF($C$1:$C$10,">"&C1)+1+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,">"&B1)
Then just add another column in the same way (I have used column A because it was testing column C first and moving right to left)
=COUNTIF($C$1:$C$10,">"&C1)+1+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,">"&B1)+COUNTIFS($C$1:$C$10,C1,$B$1:$B$10,B1,$A$1:$A$10,">"&A1)
Plz change ranges as required.

Related

Change Cell Reference based on Cell Row/Column Inputs

I have been looking for an answer to this problem. I imagine it's fairly simple, but I think the problem is I don't really know exactly how to search it.
Basically, I want to change the reference in the formula by updating the column and row cells.
So, since the column and row cells say Q & 8, the formula updates to pull from Q8.
If I were to change the column to R, it would pull from R8 and equal 20.
Surely this is straightforward.. right? Please??
Thanks!!
=INDIRECT(ADDRESS(P12,COLUMN(INDIRECT(P11&"1"))))
For explaination how does it work please read about functions INDIRECT, ADDRESS and COLUMN

Textjoin based on multiple columns and a condition

HI I would like to know what is the formula to textjoin/concate below information? summary of status
I have tried to use this but not sure how to include the second column in and have unique values
=TEXTJOIN(",",TRUE,(UNIQUE(IF(I6:I17=J20,K6:K17,"")))) - only one column
if include the array, will not have unique value, duplicate, and actual requirement the column will not be adjacent.
I'm kinda hopeless with formula still learning.
Any help is appreciated, thank you!!
One option:
Formula in G2:
=LET(a,UNIQUE(A2:A12),HSTACK(a,BYROW(a,LAMBDA(b,TEXTJOIN(", ",,UNIQUE(TOCOL(CHOOSECOLS(FILTER(C2:E12,A2:A12=b),1,3))))))))

Formula to calculate time difference based on match's in other cells

Hoping to get some help. I can do basic formula's ect in excel and often find the ones i need using google but cant find anything for what i want to do.
Please picture below
I have some conditional formatting in place to highlight which values match between column A and D.
What i want is hopefully a formula that will check columns A and D for matches and then look at the times in columns B and E and calculate the time difference relative to the match it finds and show it in column C.
I'm not even sure this is possible but my knowledge just isnt strong enough in Excel and formula's to try and piece it together.
Any help greatly appreciated.
Thanks,
If you have one-to-one match, which means that for example plate number PP5862A (from column A) will have only one occurence in column D you can use index/match combo (starting from cell C2):
=INDEX($E$2:$E$100,MATCH($A$2,$D$2:$D$100,0),1)
This formula will give you exit time for matching plate number.
For explanation how index/match works please refer to this short article: https://exceljet.net/formula/basic-index-match-exact
There are probably some VLOOKUP fans here so alternative is (again starting from cell C2):
=VLOOKUP(A2,$D$1:$E$100,2)
I have hardcoded ranges to 100 rows - you should adjust it to your needs.

Re: Count value of cells in one column that are within a specific date range in another

Hope you guys can help me please :)
I am trying to create a profit/loss sheet that automatically counts the values in all cells in AH that are within a specific month...
What is the best way to go about this please? Any ideas?
I thing the following formula might work for you:
=SUMPRODUCT((MONTH(A1:A60)=2)*C1:C60)
Where A is the date and C is the value that needs to be counted.

VLOOKUP a value to the left of the Lookup_value

Using Excel, is there any way to use the VLOOKUP function to find the date corresponding the minimum and maximum values?
With your layout #Mark is correct (you can't) and for the reason stated. INDEX/MATCH may be a suitable alternative but to provide some detail, please try in say I30 copied across and down to suit:
=INDEX($H$6:$H$26,MATCH(I27,I$6:I$26,0))
No, there is no way to look left using VLOOKUP - it can only look right. You should look at INDEX/MATCH combo to solve this.
If you're willing to use a helper column to hold the date, you can. In my example I added the helper column in column N. So column N also displays the date from column H.
=VLOOKUP(I27;$I$6:$O$26;7;0)
=VLOOKUP(I28;$I$6:$O$26;7;0)
...
There is an easy solution for this - if you don't insist on using VLOOKUP() :-)
Above your row 27 enter a new row, repeating the column headings ("Thomson" etc.). You can just use =I5, =J5 and so on.
Now enter this formula in I30: =DGET($H$5:$N$26;1;J27:J28) ... and drag it to the right.
For the maximum values you need to repeat the column headings just above the "maximum" row again.

Resources