Your formula is getting the second largest number. What do you mean "row id" - do you want the row number where that value occurs? If so try this formula
i have tried =LARGE(IF(Result!N2:N1001=A2,ROW(Result!N2:N1001)-ROW(Result!N2)+1,""),1) and it seems to cound down 10/9/8/7/6 if i try doing the top 9 like this
Also, if you enter the formula with Absolute referencing and replace the K factor with ROWS(), you can enter the formula once and copy down to get next smallest/largest row number
Can you confirm what you want to do? I thought you were finding the largest (or second largest) number in column O where column N = 1...and that you wanted to find the row where that value resides. That's what my suggested formula does.
NB_VC is finding the the nth row where column N = 1, is that what you need - isn't column O relevant?
Column E on sheet Stats is basicly putting the top 5 from sheet "Result" where its (j+l)/2 ..... i want to get the row its from so i can get horses name jockey ect... J.P.B.S.xlsx
barry houdini
That's more along the lines I suggested - you can get the relevant horse name in row 2 with this formula
I don't see how that works - E2 = 150 and the only horse with a total of 150 is Kilgefin Star (IRE)? why is it Racing Pulse?
regards, barry
barry houdini
Looking again I realise that the formula needs to change to take account of duplicates, so that goes back to a combination of my suggestion and NB_VC's, i.e this formula in row 2
confirmed with CTRL+SHIFT+ENTER and copied down the column
That still gives the same horses, though......
I populated the numbers in column A for every row, otherwise it will be more complex (and I also had to remove a #VALUE! error from column O in Results) - see attached
I have seemed to find an error where when i run the tidy up macro the results on the sts page say #ref and dne update :S
I have attached the spreadsheet with the new information in and the old information currently on the stats page.
What you do is on the INFO sheet on the top right you will see a button that says "Run TidyUp". Click on that and it should provide the top 5 horses ect on the stats page.... (It updates the Result page and lets you stats page pull the information)
Upon doing this the Results page is updated but the Stats page is full of #REF J.P.B.S.xlsm
NBVC
Once you delete the "Result" sheet in your macro, the Info sheet formulas no longer find the Result sheet, and automatically changes the sheet names to the REF! error. Adding the Result sheet back wont fix it.
The things you can do....
1. Don't delete the Result sheet. Instead clear everything, then instead of "adding" a Result sheet in the macro, just use the existing one.
2. Convert all the formula in the Result sheet to include the INDIRECT() function. This is less recommended as the INDIRECT formula adds volatility to the workbook, i.e. force repeated recalculations....
so everywhere you reference the Result sheet, you will need to wrap an INDIRECT() function around it. This will not delete the sheetname from the formula if you delete the RESULT sheet.
Member_2_5230414
ASKER
would i do it like this: =MAX(IF(INDIRECT(Result!$N$2:$N$1000=A68,Result!$O$2:$O$1000,"")))
You have a #VALUE! error in Results!O360 which causes that error in all your formulas (as I said in my last post). You need to remove that error from that cell then your formulas should work OK
regards, barry
Martin Liss
I've requested that this question be deleted for the following reason:
=MATCH(1,(Result!O1:O1001=
confirmed with CTRL+SHIFT+ENTER
regards, barry