Hello!
I'm having trouble to get the nth smallest number with a criteria. You can see the table i made attached at imgur. I'm dealing with rain data and i need to retrieve de date and time of occurence of the 5 events that are more intense. To do so, I created a combination with the INDEX, SMALL IF and ROW functions (the formula is written in brasilian so you may see the translated terms in the picture i sent). It's this hard because I need to deal with data that can be equal to each other but occur in different dates. The only way i've managed to do it is by getting the nth smallest row associated with the rain data and retrieving the date in which it occured. It worked out nicely but i have to increment the "nth" term manually when there are subsequential equal values, as I cannot find a way to increase them automatically. In the picture you can see the formula in cell and I need cell J19 to have the smallest and J20 the second smallest, and, for example, in K27:K30, to have the 4 smallest values. I haven't managed to do it with aggregate or row functions (i tried =AGGREGATE(14,3,(H30=H26:H29)/(H30=H26:H29)*(LIN(H30)-LIN(H26)),1)
to count the number of equal data and retrieve me the result but it isn't working out)
Excel image:
I can't attach the picture or attach a link so you can find it in imgur and McqONCR
Can anyone please give me some tips? I've tried a lot and can't manage to find the result myself.
Thanks!!!
Bookmarks