Hello. I have, say, used RANK in column A to rank 100 products profitability. In column B I have used the formula next to each rank number: IF(AND(A1>=1,A1<=5),"Gain","") to pick out top 5 performers i.e. 1,2,3,4,5 from the ranked list (1 being the best). I now want to also pick out the top 5 worst products in the same column B i.e 96,97,98,99,100 (with 100 being the worst). I would like to call these 'Loss'. So in total only 10 cells will be populated in column B and all others will be empty/blank. Is it even possible to do this in same formula/cell. I don't know how to identify the top 5 best and worst in same formula. I have used 100 as an example but the number of products changes each month, so next month there could be 237 products ranked from 1 to 237. Then top 5 would be 1,2,3,4,5 and worst 234, 235,236,237,238 (238 being the worst). Thank in advance.